Thanks for your answer !
1. It works. But there are other components which are using the inverse video and I would like to change this too. I could, e.g., use
- Code: Select all
uiDefaults.put("Table.selectionForeground", new ColorUIResource(Color.BLACK));
uiDefaults.put("Table.selectionBackground", new ColorUIResource(new Color(0.0f,0.1f,0.7f,0.25f)));
for the JTable. I know one can turn off bold fonts for *all* the components with just one line:
- Code: Select all
UIManager.put("swing.boldMetal", Boolean.FALSE);
and I'm wondering if there exists some similar quick way for the colors...
2. I think (didn't verify this, though) that the action performed when one switches the LnF from the Jide menu calls something like
- Code: Select all
SwingUtilities.updateComponentTreeUI(rootComponent);
==> jide is *not* aware of my singletons, so it updates only the rootComponent (the main frame hierarchy). But probably it is a bad idea to have singletons (I need them in order to accelerate the display)...