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

Anthony Petrov Anthony.Petrov at Sun.COM
Thu May 6 08:27:47 PDT 2010

Hi Costantino et al.,

On 5/5/2010 3:08 PM Costantino Cerbo wrote:
> Now it remains to specify "a well-suited API" for the DirectoryDialog.
> I think, this is a task for you, and then Damjan and I can begin to
> write the peers for X11, GTK and Windows.

I think the following template is good to start with:

public class DirectoryDialog extends Dialog {

     // Constructors
     public DirectoryDialog(Frame parent);
     public DirectoryDialog(Frame parent, String title);
     public DirectoryDialog(Dialog parent);
     public DirectoryDialog(Dialog parent, String title);

     // Getters/setters
     public File getDirectory();
     public void setDirectory(File dir);

     // Utility methods
     public void addNotify();
     protected String paramString();
     private void readObject(ObjectInputStream s);

Quite similar to what the FileDialog is. Of course, we need to write up 
some specification for each public method and the class itself. Please 
refer to the FileDialog for an example.

Suggestions are welcome. I also encourage other AWT team members and 
those lurking the mailing list, to take part in defining the API for 
this new class.

best regards,

More information about the awt-dev mailing list