Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Static Public Member Functions

org::apache::uima::tools::util::gui::FileChooserBugWorkarounds Class Reference

List of all members.

Static Public Member Functions

static void fix ()
static void setCurrentDirectory (final JFileChooser aFileChooser, final File aDir)

Detailed Description

Workarounds for JFileChooser bugs on Windows Look and Feel.

For a workaround for Java bug #4711700 ( http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4711700), Call fix() after setting Windows look and feel but before creating any file choosers.

To workaround intermittent exceptions thrown by JFileChooser.setCurrentDirectory() when it is called during initialization of your app, call the setCurrentDirectory(JFileChooser, File) method on this class rather than using the JFileChooser directly. This will use SwingUtilities.invokeLater to put the request on the event thread so it will not be executed until the event thread starts, thus avoiding the race condition hat otherwise occurs.

Definition at line 44 of file FileChooserBugWorkarounds.java.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index