Hi,
I have a JButton with the following added as actionlistener:
public void actionPerformed(ActionEvent e) {
label.setVisible(true);
//here's some timeconsuming applicationcode called.
label.setVisible(false);
}
The problem is my label is not showing! I then tried to put the call in a "invokelater-method" from SwingUtilities, but here I got an exception telling me that I already was excuting the code on the EventDispatcherThread - and well, yes I can see that :)
But if I do that, why isn't my label showing? I have tried different things to force a redraw of the GUI, but with no success!
What do I do?
Thanks :)