views:

33

answers:

0

Hey all,

I have been using the UIManager to change the coloring scheme on my GUI. For example I use this for JMenuItems:

UIManager.put("MenuItem.foreground", new ColorUIResource(255, 255, 255));
UIManager.put("MenuItem.background", new ColorUIResource(51, 51, 51));
UIManager.put("MenuItem.selectionBackground", new ColorUIResource(232, 232, 232));

For some unknown reason, a 1 pixel orange border appears around my JMenuItems and JMenus. I don't understand why and I checked all the keys from http://www.devdaily.com/java/java-uimanager-color-keys-list. Does anybody know how to change the color that borders the JMenuItems and JMenus? If it can't be done with the UIManager that is fine for a solution too.