Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
how to disable a JButton while an op completes?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Roedy Green, post: 628708"] just disable the button with thatButton.setEnabled( false ); Then do your work with a different thread, then use invokeLater when you are done to reenable it. You don't want to tie up the Swing thread during the long time your process takes. Users will think it has hung if EVERYTHING becomes totally unresponsive. see StringWorker in [URL]http://mindprod.com/jgloss/thread.html[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
how to disable a JButton while an op completes?
Top