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

Pavel Porvatov Pavel.Porvatov at Sun.COM
Wed Nov 18 14:01:01 UTC 2009


Hi Costantino,
> 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.
>   
If you'd like to contribute some sources for openjdk, you have to become 
a contributor (details are here: http://openjdk.java.net/contribute/).

To develop some new components or extend an existing one I'd recommend 
to use the official site dev.java.net. You have to pass some steps:
1. Become a contributor: https://sca.dev.java.net/
2. Create a new project: http://www.java.net/request-project

After that your project will be more official and you could get feedback 
from Sun employers and other people.

Regards, Pavel
> Cheers,
> Costantino
>   




More information about the swing-dev mailing list