private JLabel answersLabel;
private JTextArea answersArea;
-
+
private JComboBox portSelectBox;
public CommandPanel(Netzdose netzdose) {
}
});
commandInputPanel.add(commandField, BorderLayout.CENTER);
-
+
JPanel top = new JPanel();
top.setLayout(new BorderLayout());
top.add(commandInputPanel, BorderLayout.CENTER);
"Kann \"" + commandText + "\" nicht in Command wandeln.");
return;
}
- LogMediator.getInstance(this.getClass()).log("Sende an Port: " + portSelectBox.getSelectedIndex() + " command: " + command);
+ LogMediator.getInstance(this.getClass()).log(
+ "Sende an Port: " + portSelectBox.getSelectedIndex()
+ + " command: " + command);
byte[] answerBytes = netzdose.sendCommand(command);
answersArea.append(++commandCounter + ": "
+ new Command(answerBytes).toString() + "\n");