my dog learned polymorphism
The moose likes Beginning Java and the fly likes ComboBox component (not JComboBox) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

ComboBox component (not JComboBox)

Mark Dorsett

Joined: Sep 13, 2004
Posts: 5
I am having difficulty with a combobox in Java. I have the combobox set up the items are loaded from a database. That all works. After the 100 or so items are loaded from the database and I click on the combobox arrow to display the combobox list, the combobox list extends the whole length of my frame and overlaps into my button area so the bottom of the combobox is not seen. Does anyone know of any properties or methods to fix this? I have tried many different things, but so far no success.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
You will probably get a better response if you post this question to the Swing/AWT forum. In the meantime, you should look at the Java API documentation for the version of Java that you are using. There may be a method that limits the number of items that the ComboBox displays.


Java API Documentation
The Java Tutorial
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
There is no ComboBox component in Java.

Is your question HTML or Swing/AWT based?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I see you've started a duplicate thread in the Swing / AWT / SWT / JFace forum.

I'm closing this thread.
I agree. Here's the link:
subject: ComboBox component (not JComboBox)
jQuery in Action, 3rd edition