public void actionPerformed(ActionEvent e) {
actuatorController.notifyControlPanel();
}
});
topPanel = new Panel();
topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
Panel numberFieldPanel = new Panel();
numberFieldPanel.setBorder(BorderFactory.createEmptyBorder(2, 1, 2, 1));
numberFieldPanel.add(numberField.getComponent());
numberField.setSize(110, 42);
numberFieldPanel.setSize(110, 42);
topPanel.add((IPanel) numberFieldPanel);
Panel wheelSwitchPanel = new Panel();
wheelSwitchPanel.setBorder(BorderFactory.createEmptyBorder(2, 1, 2, 1));
wheelSwitchPanel.add(wheelswitch.getComponent());
wheelSwitchPanel.setSize(110, 42);
numberFieldPanel.setSize(110, 42);
topPanel.add((IPanel) wheelSwitchPanel);
Panel statePanel = new Panel();
statePanel.setBorder(BorderFactory.createEmptyBorder(2, 1, 2, 1));
statePanel.add(stateLabel.getComponent());
stateLabel.setSize(110, 42);
statePanel.setSize(110, 42);
topPanel.add((IPanel) statePanel);
Panel controlPanelButtonPanel = new Panel();
controlPanelButtonPanel.setBorder(BorderFactory.createEmptyBorder(2, 1, 2, 1));
controlPanelButtonPanel.add(controlPanelButton);
controlPanelButton.setSize(110, 42);
controlPanelButtonPanel.setSize(110, 42);
topPanel.add((IPanel) controlPanelButtonPanel);
setTitledBorder(PASSIVE_TEXT);
setLayout(new BorderLayout());
Panel intermediatePanel = new Panel();
intermediatePanel.setLayout(new BorderLayout());
intermediatePanel.add((IPanel) topPanel, BorderLayout.EAST);
this.add((IPanel) intermediatePanel, BorderLayout.NORTH);
add(chartViewer.getComponent());
updateDisplayMode();
}