|
-
April 28th, 2004, 10:21 AM
#2
Re: The width of the JComboBox drop-down list
Originally posted by nonick
I want to have same prefferredSize() for all JComboBox i use. So I made an subclass to JComboBox and wrote setPrefferredsize( ... ). But i want to know how i can change the width of the drop-down list, that shows JComboBox items (wich is String-objects) to be wide as a widest String item. Because now, this drop-down list is wide as JComboBox.
Please if u know the answer, write details. Beacause I am not so very good in english. If u write an example it will help very much.
I thought setPreferredSize() was a layout manager related thing.. are you sure that that is what is affecting the popup menu?
you have subclassed your JCBox.. have you got access to the menu?
Someone else was recently asking about moving the popup.. see if any advice has appeared in that thread.. or maybe you would have something to contribute there, and achieve a collaborated solution..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|