• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Color the JComboBox

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Try using the method: setForeground(Color c).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic