Bug 30557 - missing line in method GtkToolkit.createFileDialog
Summary: missing line in method GtkToolkit.createFileDialog
Status: UNCONFIRMED
Alias: None
Product: classpath
Classification: Unclassified
Component: awt (show other bugs)
Version: 0.93
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-23 15:28 UTC by mladen stoev
Modified: 2007-01-23 15:28 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mladen stoev 2007-01-23 15:28:49 UTC
protected FileDialogPeer createFileDialog (FileDialog fd)
  {
       checkHeadless();
       GtkMainThread.createWindow(); /* <---- missing */
       return new GtkFileDialogPeer (fd);
  }

/*Test case results in deadlock:*/

import java.awt.*;
public class FileLoadDialog 
{

public static void main(String[] args) 
{
  Frame fr = new Frame("Frame");
  FileDialog fd = new FileDialog(fr,"Find file path...", FileDialog.LOAD );
  fd.setVisible(true);

  if (fd.getFile() != null)
    System.out.println(fd.getDirectory() + fd.getFile());
  else
    System.out.println("Load cancelled........");
}

}