Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying comboboxes in tables




OK, the main problem was that the editable combobox Aqua look sucks (IMHO) ,so I made:


c.setEditable(true); //as I need a general combobox that would accept anything to display
c.setSelectedItem(value); //set value, only valid if editable (or possible values fixed ...)
c.setEditable(false); //non editable


And it is acceptable (for me). And, anyway, my comboboxes are not editable ...

(Never felt confortable answering to myself, but may be interesting to others ...)
I was tired of seeing JTable text fields that when you touch them become anything in Swing ...


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.