A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Developer Certification (SCJD/OCMJD)
JComboBox - a constant size
Joined: Aug 27, 2003
Sep 06, 2005 10:24:00
Started working on my assignment again after a looooooong time.
I have a pretty basic question now.
I am using a JCombobox in my
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
Joined: Mar 26, 2002
Sep 06, 2005 13:33:00
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:
subject: JComboBox - a constant size
Layout manager and resizing
how to set a fixed size for a JComboBox
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015