File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes hide button JComboBox, no loss of color 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 "hide button JComboBox, no loss of color" Watch "hide button JComboBox, no loss of color" New topic
Author

hide button JComboBox, no loss of color

Roberto Alves Pereira
Greenhorn

Joined: Nov 18, 2012
Posts: 13
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

Joined: Nov 18, 2012
Posts: 5
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

Joined: Nov 18, 2012
Posts: 13
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hide button JComboBox, no loss of color
 
Similar Threads
Overriding the createPopup() of a Nimbus LAF
Problem with updating look and feel colors of swing components dynamically
JComboBox with horizontall scroll bar
Prevent Display of Drop List in JComboBox
swing(JComboBox)urgent