Wednesday, 15 May 2013

colors - Java - Why JComboBox display a blue box around text? -



colors - Java - Why JComboBox display a blue box around text? -

i utilize jcombobox in program, i've changed foreground , background colors there bluish box surrounds text when hasn't focus. utilize netbeans , didn't find alternative disable it.

does know how do?

screenshot:

thanks in advance.

by appearance of it, border drawn metal , feel. don't know how disable it, think should alter color same grayness you're using rest of combo box, invisible:

((javax.swing.plaf.metal.metallookandfeel)uimanager.getlookandfeel()) .setcurrenttheme(new javax.swing.plaf.metal.oceantheme() { @override protected javax.swing.plaf.coloruiresource getsecondary2() { homecoming new javax.swing.plaf.coloruiresource(0x8b8b8b); } });

java colors jcombobox

No comments:

Post a Comment