File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
PostGIS in Action
this week in the
JDBC and Relational Databases
Java Advanced Topics Training
Java in General
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