<AWT Dev> bug 6913179 (The java.awt.FileDialog should use native GTK file chooser on linux distros) - indentation corrected

Damjan Jovanovic damjan.jov at gmail.com
Tue May 4 07:48:15 PDT 2010


On Tue, May 4, 2010 at 4:31 PM, Anthony Petrov <Anthony.Petrov at sun.com> wrote:
> Hi Costantino,
>
> On 05/02/2010 09:43 PM, Costantino Cerbo wrote:
>>
>> I was wrong: I meant the issue 6927978 (Directory Selection standard
>> dialog support) and not the 6705345 (that's already fixed).
>>
>> The goal is to add to the FileDialog a feature like the
>> JFileChooser#setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY).
>
> Thanks for the correction.
>
>
>> My idea it to allow FileDialog#setMode(.) to accept also the value
>> LOAD_DIRECTORIES_ONLY ( = 2).
>> It's a minimal change that doesn't broke the existing API. Do you
>> agree to do so?
>
> Yes, I strongly agree that AWT FileDialog should support selecting
> directories. That might even be another class like DirectoryDialog, since
> the API for these operations differs quite a lot. However, currently we have
> three different implementations of the FileDialog on:
>
> 1. MS Windows
> 2. X11 + GTK
> 3. X11 w/o GTK
>
> And we actually have to be able to display a directory chooser on each of
> the 'platforms' as well. W/o that I'm afraid we can't accept such a fix.
>

Windows uses a separate dialog for directory-only selection, so a
separate DirectoryDialog seems like a good idea.

>
>> I can do the fix for GTK. Does anybody in this mailing list want to
>> deliver the patch for windows?
>
> Anyone please?

I could make a Windows patch, I've still got a Windows build
environment for OpenJDK set up from a while back.

> --
> best regards,
> Anthony
>

Regards
Damjan



More information about the awt-dev mailing list