This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Color the JComboBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Color the JComboBox" Watch "Color the JComboBox" New topic
Author

Color the JComboBox

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi all,

when I setBackground(Color.green) my JComboBox it colors only the arrow (I set the combobox to setEditable(true)).

how can i color the textFiled of the jcombobox as well?
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
Hello,

Try using the method: setForeground(Color c).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Color the JComboBox
 
Similar Threads
Can I change the back/foreground color of a disabled JComboBox?
JCombo.setBackground()
how to set the "background selection color" of a Combobox
drop down menu
how to Change JSpinner&JComboBox Arrows Color?