Disable « JComboBox « Java Swing Q&A





1. Disabling JComboBox and retaining original item list    stackoverflow.com

My action listener on a JComboBox invokes a thread. I would like the component to be disabled until the thread completes. I have tried calling seEnabled(false) when the thread start and setEnabled(true) ...

2. Better readability/contrast in a disabled JComboBox    stackoverflow.com

I have a JComboBox that needs to be disabled at some point, but I am feeling that the disabled status makes it quite harder to read because the low contrast it ...

3. Is it possible to disable a JComboBox when a JTextField is edited?    stackoverflow.com

I'm working on a form and I'd like to have a drop-down box where you select a person. It brings up their stored information in the text-fields below, but as soon ...

4. Disable items on JComboBox    coderanch.com

Hi. Can anyone help me figure out how I can disable certain items on a JComboBox? I know I need a customer renderer which I am using one for setting tool tips on my items, however, I can't seem to figure out how to disable certain items so the user cannot select them. Here's my custom renderer: class ComboBoxRenderer extends BasicComboBoxRenderer ...

5. JComboBox With Disabled Items    coderanch.com

Hello guys, i really need your help with a problem here... I have a normal JComboBox with 3 items, but what i want is all the items to be disabled. If not possible, than only the default value may be enabled, but the other choices must be disabled (grayed out and not chooseable). I need this because the user of my ...

6. JComboBox disabling not Successfull    coderanch.com

7. how to disable combobox items    coderanch.com

8. Disabling certain options in a JComboBox    forums.oracle.com

9. disable some items in a jCombobox    forums.oracle.com

can u please provide sample code for this Well I would but if I posted the code here then people who use the forums properly by search the Swing forum for Swing related questions won't find the answer because this question was posted in the wrong forum. There is no need to repost the question because this question has already been ...