<Swing Dev> Issue 5090726 - GTK L&F: Need new FileChooserUI to match native GTK 2.4 widget

Costantino Cerbo c.cerbo at gmail.com
Fri Nov 13 20:57:46 UTC 2009


Hallo Pavel, Hallo everyone

I've added 15px after the label "Posizione:" ( = Location) exactly
like in the original GTK FileChooser.
The change is committed in the trunk and will be included in the next release.

Regarding the exception that you reported:

java.lang.IllegalArgumentException: /home/fritz/Documents doesn't exist.
       at eu.kostia.gtkjfilechooser.ui.FileBrowserPane.listDirectory(FileBrowserPane.java:164)
       at eu.kostia.gtkjfilechooser.ui.FileBrowserPane.setCurrentDir(FileBrowserPane.java:203)
       at eu.kostia.gtkjfilechooser.ui.GtkFileChooserUI.doDirectoryChanged(GtkFileChooserUI.java:1171)

it's thrown from this code in FileBrowserPane:
162: private void listDirectory(File dir,
javax.swing.filechooser.FileFilter swingFilter) {
163:		if (!dir.exists()) {
164:			throw new IllegalArgumentException(dir + " doesn't exist.");
165:		}

You say that the folder "/home/fritz/Documents" exists, therefore I
cannot understand why this exception occurs.
What do you think about?

You can also anonymously check out the latest project source code:
  svn checkout http://gtkjfilechooser.googlecode.com/svn/trunk/
gtkjfilechooser-read-only

If you want, or if somebody else ask for it, i can give the right to
commit directly in the svn repository.

Cheers,
Costantino



More information about the swing-dev mailing list