This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes URGENT! JCombobox Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "URGENT! JCombobox Problem" Watch "URGENT! JCombobox Problem" New topic
Author

URGENT! JCombobox Problem

Ria Sood
Greenhorn

Joined: Dec 14, 2001
Posts: 1
How can I make the Combobox open up and not down. Is there any method to do that? another thing is how can I reduce the size of drop down so that it can take the scrollbar?
allen turner
Greenhorn

Joined: Oct 04, 2001
Posts: 15
Take a look at the setMaximumRowCount methhod of the JComboBox class to set the number of rows in the drop down.
 
Consider Paul's rocket mass heater.
 
subject: URGENT! JCombobox Problem