java - Change JComboBox colourms how? -
i change color of selected combobox. not know name of event. not background or foreground, then? more on image:
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
Post a Comment