Paint event in actionperformed
I want something very simple, every time I click a command i.e. the actionPerformed method is executed, the header should change it's text to "Loading" and after that execute some hard logic in worker thread. The problem is that when actionPerformed is entered, the EDT thread gets busy and can't process my Form.setTitle() invocation. And the title is not changing.
I have a similar problem with the menu which I want to hide immediately after a command is clicked. But it doesn't.
Any ideas how can I get around it ?