What I am trying to do is display a JLabel and then after 5 seconds I wish to hide the label. I have the following code but it does not work:
label.setText("hi"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
try {Thread.sleep(5000);} catch (InterruptedExecution e){}
label.setText(null)
I also tried repaint but didnt work:
label.setText("hi"
;
label.setText(""
;
repaint(5000);
label.setText("hi"
try {Thread.sleep(5000);} catch (InterruptedExecution e){}
label.setText(null)
I also tried repaint but didnt work:
label.setText("hi"
label.setText(""
repaint(5000);