[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
Thu Mar 12 00:25:02 PDT 2009
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3801
cxh at eecs.berkeley.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Target Milestone|Unspecified |1.1.0
Version|1.0.0 |1.x dev
------- Comment #2 from cxh at eecs.berkeley.edu 2009-03-12 00:25 -------
The whiteboxes in the Windows file browser dialog only occur in
the HTML Viewer.
This command does not have the bug under Java 1.5.0_17 with
Ptolemy II 5.0.1, but does have it with Java 1.5.0_17 with
Ptolemy II 6.0.2, 7.0.1 and the svn head:
java -classpath "." ptolemy.vergil.VergilApplication doc/help.htm
The problem goes away if I comment out the stylesheet code in
ptolemy.actor.gui.HTMLViewer._init():
if (_styleSheetURL != null) {
// If _styleSheetURL is non-null, we set the style sheet
// once and only once. If try to do this in a static initializer,
// then the styles are wrong.
HTMLDocument doc = (HTMLDocument) pane.getDocument();
StyleSheet styleSheet = doc.getStyleSheet();
styleSheet.importStyleSheet(_styleSheetURL);
new HTMLEditorKit().setStyleSheet(styleSheet);
_styleSheetURL = null;
}
The problem is that ptII/doc/default.css sets the body to white:
BODY {
background: #ffffff;
which gives us the white boxes. Changing the background changes
the color of the white boxes.
The fix would be to come up with a css file does not set the background
for the JFileBrowser widget.
More information about the Kepler-dev
mailing list