Hi gurus's :cool:
I have got an actionListner in my code. The problem is that when I try to set my JLabel as true it does not work and does not show up in the GUI ? :@
Button.addActionListener(
new ActionListner(){
public void actionPerformed(ActionEvent e){
label.setVisible(true);
myFunction() //here's some timeconsuming Function called.
label.setVisible(false);
}
});
Now if I add a second actionListener to the same Button the Label works but requires 2 Mouse Presses which is bad :(
Why is it happening so and how can I get it work the way I want ? :-/
Thanks :confused: