I'm trying to use a JFileChooser in LINUX to open up a file I will be reading in but the FileChooser does not show any directories or files for me to chose from. It's just and empty FileChooser Window. It has a couple options by the "Look In:" combobox, but again there is nothing to chose from in the window where the folders and files should show up.
The code i have is simple
JFileChooser fc;
...
...
if ("open".equals(e.getActionCommand()))
{
if (fc == null)
{
fc = new JFileChooser();
fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
}
}
int returnVal = fc.showOpenDialog(ScenExectureWindow.this);
Again the FileChooser window appears but I don't understand why it is not recognizing ANY files or folders...
Any ideas?