java - Change JComboBox colourms how? -


i change color of selected combobox. not know name of event. not background or foreground, then? more on image:

http://i.stack.imgur.com/hnim3.png

a renderer works items in dropdown.

the same renderer used render value displayed in combo box when index value -1. however, background color controlled ui can't override it.

uimanager.getcolor("combobox.selectionbackground"); 

property used control background have consistent laf indicates when combo box has focus. don't know of easy way control behaviour. need write custom ui sets background based on selected value.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -