Java Swing: How to make the JComboxBox drop down list taller?

Posted by NoozNooz42 on Stack Overflow See other posts from Stack Overflow or by NoozNooz42
Published on 2010-06-11T04:00:36Z Indexed on 2010/06/11 4:02 UTC
Read the original article Hit count: 297

Filed under:
|
|

How to make the "dropdown" (or "popup", I don't know how it's called) of a JComboBox taller on the screen?

By default, when I open my JComboBox I see, say, 7 out of 29 items, then I need to scroll.

What should I do so that I can see, say, 15 out of these 32 items? (or if the dropdown is, say, 150 pixels tall, how can I make it 300 pixels tall?)

I've read the Sun tutorial on JComboBox and the JavaDoc but I must have overlooked the method(s) to call.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing