java - "Unpress" JButton which is looking pressed -


i have jbutton in java application. when button pressed, actions developed actionlistener take seconds finish, , button looks pressed time.

i want remove look, since looks application had frozen.

i have seen this related question, prefer different solution avoid changing lot of code.

is possible achieve?

resource sensitive tasks must not performed in ui thread (the thread handles ui clicks , other activities visible user), need separate time consuming tasks other thread.

another option show progress bar or till action over.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -