wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes JComboBox - a constant size 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 » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "JComboBox - a constant size" Watch "JComboBox - a constant size" New topic
Author

JComboBox - a constant size

Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
Started working on my assignment again after a looooooong time.

I have a pretty basic question now.
I am using a JCombobox in my JPanel layout to implement the Search functionality. It expands to fit in the largest entry in the list.

Is there a way I could make it a constant size, so that irrespective of the data entries, it just shows a constant width?
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
There's a setting on thge combobox for the max visible entries, have a squizz at the javadoc for what it is but it makes the combo box scroll so you can see the other entries.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JComboBox - a constant size
 
Similar Threads
smoothing fonts
JComboBox
how to set a fixed size for a JComboBox
window resize
Layout manager and resizing