-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
x86
-
linux
A DESCRIPTION OF THE REQUEST :
Want a static method that will tell which Metal themes have are installed.
Ideally this method should be similar to UIManager.getInstalledLookAndFeels() in that it will list the Metal themes that are installed as part of the JVM.
JUSTIFICATION :
This will make it possible to programatically determine which Metal themes installed on the user's system and allow easier switching between the installed themes (currently Steel and Ocean).
Such information aids in the creation of theme-selection menus similar to that in the jfc/Metalworks demo.
This is a trivial task to do manually in Tiger where Steel and Ocean are the only choices, but such would prevent users from using new themes that may be added to either Mustang or Dolphin without updating the source code.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Calling getInstalledMetalThemes() returns a list of the installed Metal themes. In Tiger this would be Steel and Ocean.
This could be an array of Class instances, the fully qualified names of the classes, or instances of a ThemeInfo class (similar to UIManager.LookAndFeelInfo).
ACTUAL -
No such method exists.
CUSTOMER SUBMITTED WORKAROUND :
Manually set the installed Metal Themes based on the JVM version.
Java 5.0 = {Steel, Ocean}
Java 1.4.x = {Steel}
###@###.### 2005-04-26 09:12:24 GMT
Want a static method that will tell which Metal themes have are installed.
Ideally this method should be similar to UIManager.getInstalledLookAndFeels() in that it will list the Metal themes that are installed as part of the JVM.
JUSTIFICATION :
This will make it possible to programatically determine which Metal themes installed on the user's system and allow easier switching between the installed themes (currently Steel and Ocean).
Such information aids in the creation of theme-selection menus similar to that in the jfc/Metalworks demo.
This is a trivial task to do manually in Tiger where Steel and Ocean are the only choices, but such would prevent users from using new themes that may be added to either Mustang or Dolphin without updating the source code.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Calling getInstalledMetalThemes() returns a list of the installed Metal themes. In Tiger this would be Steel and Ocean.
This could be an array of Class instances, the fully qualified names of the classes, or instances of a ThemeInfo class (similar to UIManager.LookAndFeelInfo).
ACTUAL -
No such method exists.
CUSTOMER SUBMITTED WORKAROUND :
Manually set the installed Metal Themes based on the JVM version.
Java 5.0 = {Steel, Ocean}
Java 1.4.x = {Steel}
###@###.### 2005-04-26 09:12:24 GMT