Disabling JComboBox and retaining original item list

Posted by n002213f on Stack Overflow See other posts from Stack Overflow or by n002213f
Published on 2010-03-12T07:43:41Z Indexed on 2010/03/12 7:47 UTC
Read the original article Hit count: 315

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about jcombobox

Related posts about swing