Problem in setting JLabel Icon

  • Follow


Hi.

  I am facing some problem. I have a JLabel containing an blinking
image(it blinks only 3 times, it is a .gif file). I want this icon
blinks when a message will be display in status bar.

I have created a JLabel by using 
JLabel lbl = new JLabel("status", icon, SwingConstants.RIGHT);
this time image is blinking and working fine.(first time it is only
blinking)

and during the display code of status bar i have writeen
lbl.setIcon(null);
lbl.setIcon(new ImageIcon(imgpath));
but during this time the image is not blinking.

Is there any solution to do this ?


Asit
0
Reply hi_asit 8/14/2003 5:23:25 AM


0 Replies
291 Views

(page loaded in 0.018 seconds)

Similiar Articles:









7/27/2012 11:36:23 AM


Reply: