smallPane.add(BorderLayout.EAST, button);
mainPane.add(smallPane);
/* CPU frequency */
if (mote instanceof AbstractEmulatedMote) {
AbstractEmulatedMote emulatedMote = (AbstractEmulatedMote) mote;
smallPane = new JPanel(new BorderLayout());
label = new JLabel("CPU frequency");
label.setPreferredSize(size);
smallPane.add(BorderLayout.WEST, label);
if (emulatedMote.getCPUFrequency() < 0) {
label = new JLabel("[unknown]");
} else {
label = new JLabel(emulatedMote.getCPUFrequency() + " Hz");
}
label.setPreferredSize(size);
smallPane.add(BorderLayout.EAST, label);
mainPane.add(smallPane);
}