lightsColumn.removeAll();
if (theLights != null && theLights.size()>0) {
Iterator<BinaryLight> it=theLights.iterator();
while(it.hasNext()) {
BinaryLight light = it.next();
JPanel panel=new JPanel();
panel.setBorder(BorderFactory.createTitledBorder(
light.getName() + " in " + light.getLocation()));
JLabel lightGUI= new javax.swing.JLabel();
lightGUI.setOpaque(true);
lightGUI.setPreferredSize(new DimensionUIResource(180, 40));
if(light.isLightOn())
lightGUI.setBackground(Color.YELLOW);
else lightGUI.setBackground(Color.GRAY);
panel.add(lightGUI);
lightsColumn.add(panel);
}