Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hide button JComboBox, no loss of color

 
Roberto Alves Pereira
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed to remove the button of JComboBox with the code:



I want recover the colors of JComboBox
or a alternative to hide the button
a tip?
thank you

help please *-*
 
Russell Slighton
Greenhorn
Posts: 5
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not find any color change with a normal BasicUIComboBox. From my experiences, the BasicUIComboBox is a fickle thing. What I've done in the past is move sections of code around until it works. Try moving your getting rid of JButton code to just after creating the comboBox, then changing color. Another thing I've done to change background color is this:




I hope that helps.
 
Roberto Alves Pereira
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Russ xkcd wrote:I did not find any color change with a normal BasicUIComboBox. From my experiences, the BasicUIComboBox is a fickle thing. What I've done in the past is move sections of code around until it works. Try moving your getting rid of JButton code to just after creating the comboBox, then changing color. Another thing I've done to change background color is this:




I hope that helps.


Helped yes, very.
thank you very much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic