views:

31

answers:

1

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) when it completes. Unfortunately setEnabled(false) clears the combo box list as well.

Is there a way of disabling the component but retain the original list?

+1  A: 

setEnabled(false) definitely doesn't clear the contents of the combo box. Something else must be going on.

Posting your code might help.

tom