File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Swing / AWT / SWT
Author
Color the JComboBox
Peter Primrose
Ranch Hand
Joined: Sep 10, 2004
Posts: 755
posted
Apr 02, 2005 11:20:00
0
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
posted
Apr 02, 2005 13:00:00
0
Hello,
Try using the method: setForeground(Color c).
I agree. Here's the link:
http://aspose.com/file-tools
subject: Color the JComboBox
Similar Threads
drop down menu
JCombo.setBackground()
Can I change the back/foreground color of a disabled JComboBox?
how to Change JSpinner&JComboBox Arrows Color?
how to set the "background selection color" of a Combobox
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter