Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Prevent drop-down of a JComboBox list

794041Oct 12 2009 — edited Oct 15 2009
Hello,

how do I prevent a JComboBox list from dropping-down? I need to know because Java lets other controls gain input focus even if input in the current control is not valid according to the respective input verifier (see Java bug no. 4533820). Thus, putting something wrong into a field having an input verifier and clicking a combobox still results in the CB list dropping down. So, is there a way of forcing a CB not to drop its list down in case user clicks it?

Any help would be much appreciated.

Best regards,
vt
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2009
Added on Oct 12 2009
11 comments
870 views