Closedown
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user