JDK-6959174 : Need to introduce sun.awt.disableGtkFileDialogs system property
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris
  • CPU: sparc
  • Submitted: 2010-06-07
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b102Fixed
Related Reports
Relates :  
Description
see comments

Comments
EVALUATION Alternative fix is to introduce new "sun.awt.disableGtkFileDialogs" system property; this property can be used to disable the GTK file dialogs and display the java-based X11 file dialogs.
07-07-2010

EVALUATION The test is XToolkit-specific, and it assumes that it tests the default XToolkit (motif-alike, java-based) file dialog. However, since 7b94 there's also an alternative implementation of the file dialog that uses the native GTK libraries (if available). Looks like the test is in no way related to this new implementation. Anyway, there are two problems present: 1. The file dialog (its Java Window object) must become the 'focused window' when the dialog is displayed. I.e. we must tell the KFM that this window is now focused. That doesn't happen currently because the file dialog is a gtk-widget, and we don't receive focus-related events for it. This change alone should make the test pass as is. AND 2. The test should actually verify the name of the peer of the created file dialog, and if it differs from sun.awt.X11.XFileDialog, pass silently.
08-06-2010

EVALUATION Looks like a regression of 6913179 (The java.awt.FileDialog should use native GTK file chooser on linux distros).
08-06-2010