[kepler-dev] [Bug 3801] - open dialog, common places pane has white box instead of text

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Wed Aug 5 14:30:10 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3801


cxh at eecs.berkeley.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |4282
           Severity|trivial                     |minor
             Status|NEW                         |ASSIGNED
           Priority|P5                          |P3




------- Comment #8 from cxh at eecs.berkeley.edu  2009-08-05 14:30 -------
This is fixed in the Ptolemy tree.
I added ptolemy.actor.JFileChooserBugFix and modified ptolemy.gui.Top.
ptolemy.gui.Query and ptolemy.actor.gui.TableauFrame to use it.
Basically, what we do is get the background and save it, set the background
to a value that will work properly, create the JFileChooser and then
in a finally clause restore the original background.  This is a hack to
workaround a known Sun bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6817933

I checked that the following work properly with no white boxes and no
corruption
of the html widget:
File -> Open
File -> SaveAs
The FileParameter Browse button.

Unfortunately, in Kepler the "Open Archive (KAR)" menu choice still has
white boxes.  To fix this, see the comment at the top of JFileChooserBugFix.

Unfortunately, the fixes to File->Open and File->SaveAs will not be visible
in Kepler because Kepler contains a duplicate copy of Top in
ptII/src/ptolemy/gui/Top.java
(Bug 4282 at http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4282)


To see this fix and workaround bug #4282:
cd build-area
ant update-ptolemy -Drev=head
rm ../ptII/src/ptolemy/gui/Top.java 
rm ../ptII/target/classes/ptolemy/gui/Top*.class
ant run
rm ../ptII/src/ptolemy/gui/

I'm upgrading the severity of this bug because it makes Kepler look wrong
under Windows when the user opens a file.


More information about the Kepler-dev mailing list