3 import diku
.distlab
.motecontrolclientlib
.client
.LedsInputStream
;
4 import javax
.swing
.ImageIcon
;
5 import javax
.swing
.JLabel
;
6 import javax
.swing
.JPanel
;
8 public class MoteLedsPanel
extends JPanel
{
10 private static final long serialVersionUID
= 221423246112076656L;
11 private JLabel led0
,led1
,led2
,led3
;
12 private ImageIcon gray
,red
,yellow
,green
,blue
;
16 java
.net
.URL grayURL
= ReMote
.class.getResource("/icons/led-gray.gif");
17 gray
= new ImageIcon(grayURL
);
19 java
.net
.URL redURL
= ReMote
.class.getResource("/icons/led-red.gif");
20 red
= new ImageIcon(redURL
);
22 java
.net
.URL greenURL
= ReMote
.class.getResource("/icons/led-green.gif");
23 green
= new ImageIcon(greenURL
);
25 java
.net
.URL yellowURL
= ReMote
.class.getResource("/icons/led-yellow.gif");
26 yellow
= new ImageIcon(yellowURL
);
28 java
.net
.URL blueURL
= ReMote
.class.getResource("/icons/led-blue.gif");
29 blue
= new ImageIcon(blueURL
);
31 led0
= new JLabel(gray
);
32 led1
= new JLabel(gray
);
33 led2
= new JLabel(gray
);
34 led3
= new JLabel(gray
);
42 public void clearLeds()
50 public void setLeds(LedsInputStream leds
)