W
WDW
How can I reset the UIDefaults before installing a new theme:?
I will explain ...
I set the cuurent theme to my own theme
MetalLookAndFeel.setCurrentTheme(myTheme);
with following changes to the UIDfeaults:
public void addCustomEntriesToTable(UIDefaults table) {
super.addCustomEntriesToTable(table);
Color c1 = new Color(255, 0, 255);
table.put("Button.foreground", c1);
}
After changing the theme to another theme - ie DefaultMetalThem - the
foreground color of the button is still pink ...
Some help please
TIA
Willy
I will explain ...
I set the cuurent theme to my own theme
MetalLookAndFeel.setCurrentTheme(myTheme);
with following changes to the UIDfeaults:
public void addCustomEntriesToTable(UIDefaults table) {
super.addCustomEntriesToTable(table);
Color c1 = new Color(255, 0, 255);
table.put("Button.foreground", c1);
}
After changing the theme to another theme - ie DefaultMetalThem - the
foreground color of the button is still pink ...
Some help please
TIA
Willy