[ 1735122 ] Mandatory fields with AutoCompletion have incorrect color

http://sourceforge.net/tracker/index.php?func=detail&aid=1735122&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2007-06-11 16:21:25 +00:00
parent 80ab81b48c
commit 4dc41bde4e
1 changed files with 3 additions and 0 deletions

View File

@ -244,6 +244,9 @@ public class CComboBox extends JComboBox
{
if (bg.equals(getBackground()))
return;
// Set same color for editor component - teo_sarca [ 1735122 ]
if (getEditor() != null && getEditor().getEditorComponent() != null)
getEditor().getEditorComponent().setBackground(bg);
super.setBackground(bg);
} // setBackground