-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b58
-
generic
-
generic
The synth package level documentation contains a typo in the text where it shows how to load an xml theme. It currently reads:
SynthLookAndFeel laf = new SynthLookAndFeel();
laf.load(MyClass.class.getResourceAsStream("laf.xml",
MyClass.class));
UIManager.setLookAndFeel(laf);
It should read:
SynthLookAndFeel laf = new SynthLookAndFeel();
laf.load(MyClass.class.getResourceAsStream("laf.xml"),
MyClass.class);
UIManager.setLookAndFeel(laf);
SynthLookAndFeel laf = new SynthLookAndFeel();
laf.load(MyClass.class.getResourceAsStream("laf.xml",
MyClass.class));
UIManager.setLookAndFeel(laf);
It should read:
SynthLookAndFeel laf = new SynthLookAndFeel();
laf.load(MyClass.class.getResourceAsStream("laf.xml"),
MyClass.class);
UIManager.setLookAndFeel(laf);
- relates to
-
JDK-6226807 Misplaced parenthesis in example code
-
- Resolved
-