-
Bug
-
Resolution: Not an Issue
-
P4
-
5.0
-
x86
-
windows_xp
Name: rmT116609 Date: 02/26/2004
FULL PRODUCT VERSION :
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
The new system property swing.metalTheme is ignored when set in swing.properties. If I specify -Dswing.metalTheme=steel at the commandline it works great (the Steel theme is used), but if I enter the property in the swing.properties file I see the Ocean look. Since swing.properties is a central file for Swing configuration, it should be possible to specify the property here, too.
To repeat what the problem is: setting swing.metalTheme=steel works well at
the command line but has NO effect when set in swing.properties
To illustrate the problem, I took these steps:
1) run cmd.exe (Windows XP)
2) Since I installed the J2SE 1.5 beta SDK in
D:\Programme\Entwicklung\j2sdk1.5, I cd to D:\Programme\Entwicklung\j2sdk1.5
3) To see that we are in the correct directory let us run SwingSet2 with the
Motif look and feel:
D:\Programme\Entwicklung\j2sdk1.5>bin\java
-Dswing.defaultlaf=com.sun.java.swing
.plaf.motif.MotifLookAndFeel -jar demo\jfc\SwingSet2\SwingSet2.jar
This works great - no problem.
3) Now I run the app with Metal.
D:\Programme\Entwicklung\j2sdk1.5>bin\java
-Dswing.defaultlaf=javax.swing.plaf.m
etal.MetalLookAndFeel -jar demo\jfc\SwingSet2\SwingSet2.jar
Again, NO problems, SwingSet shows the new Ocean look.
Now we try with the old one, Steel:
D:\Programme\Entwicklung\j2sdk1.5>bin\java
-Dswing.defaultlaf=javax.swing.plaf.m
etal.MetalLookAndFeel -Dswing.metalTheme=steel -jar
demo\jfc\SwingSet2\SwingSet2
.jar
Again, NO problems, SwingSet shows the old version of Metal we know from
J2SE1.4.2.
Finally we come to the part where the problems begin.
If I create a file swing.properties and put it at the right place, I can use
this file to set the look and feel for SwingSet using swing.defaultlaf=...
BUT SETTING swing.metalTheme=steel HAS NO EFFECT.
REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 239778)
======================================================================