Package fr.imag.adele.apam.tutorials.lights.devices

Examples of fr.imag.adele.apam.tutorials.lights.devices.BinaryLight


        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);
            }
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.tutorials.lights.devices.BinaryLight

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.