wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JComboBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JComboBox" Watch "JComboBox" New topic
Author

JComboBox

Cathy Young
Ranch Hand

Joined: Mar 02, 2002
Posts: 126
I need to write a JComboBox with Swing which has fixed width, and the elements added to it can be longer (wider) than the JComboBox. So when the JComboBox gets focus, the list of elements are in a box which is wider than the "header" of the JComboBox.
Any links? Ideas?
Thanks!
--Cathy
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Stepped Combo Box
That should do the trick.


GenRocket - A Test Data Generation Platform
Cathy Young
Ranch Hand

Joined: Mar 02, 2002
Posts: 126
Originally posted by Gregg Bolinger:
Stepped Combo Box
That should do the trick.

Thanks! That is exactly what I need.
--Cathy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JComboBox
 
Similar Threads
JComboBox: JList Wider Than Renderer
Why we dont have JComboBox(ArrayList items)
Bitwise operators
Inheritance casting
Which construtor gets invoked?