Closedown

This commit is contained in:
boccioli_m
2015-05-29 15:54:35 +02:00
parent 0e578e44e8
commit 3de9cdeb6d
2 changed files with 11 additions and 7 deletions

View File

@@ -18,21 +18,25 @@ import javax.swing.JPanel;
*
*/
public class TestingPanel extends Panel {
MotorPanel motorPanel;
@Override
protected JPanel create() {
return new NetbeansPluginPanel();
return new NetbeansPluginPanel();
}
MotorPanel motorPanel;
@Override
protected void onInitialize(int runCount){
Motor motor = (Motor) TestingPanel.this.getDevice("motor");
System.out.println("Device = " + motor);
motorPanel.setDevice(motor);
}
public class NetbeansPluginPanel extends MonitoredPanel {
public NetbeansPluginPanel() {
initComponents();
motorPanel = new MotorPanel();
panel.add(motorPanel);
Motor motor = (Motor) TestingPanel.this.getDevice("motor");
motorPanel.setDevice(motor);
}
@SuppressWarnings("unchecked")