aspose file tools
The moose likes Swing / AWT / SWT and the fly likes About JComboBox Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "About JComboBox" Watch "About JComboBox" New topic
Author

About JComboBox

Sri Rangan
Ranch Hand

Joined: Dec 08, 2001
Posts: 160
I have to display a long messages in JComboBox and I do not want to increase the length of JComboBox.
I would like to keep the JComboBox length to standard length and when user clicks, I want to show the full length of the items in the drop down.
Thanks for the help
Sri
lavanya subramanian
Ranch Hand

Joined: Nov 03, 2000
Posts: 52
hi Sri Rangan
i don't know if this is the solution for your problem but
try JCombobox method setToolTipText() method
if you use this method when the mouse points the jcombobox item the full value will be shown.

lavanya
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Take a look at the stepped combo example.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About JComboBox
 
Similar Threads
drop down menu
Label in Combobox
how to create Jcombobox with fixed width?
JComboBox automatically executes actionPerformed after combo items are refreshed??
size of JComboBox