(BoardPort port)
| 32 | private int connectionAttempts; |
| 33 | |
| 34 | public NetworkMonitor(BoardPort port) { |
| 35 | super(port); |
| 36 | |
| 37 | onSendCommand(new ActionListener() { |
| 38 | public void actionPerformed(ActionEvent event) { |
| 39 | try { |
| 40 | OutputStream out = channel.getOutputStream(); |
| 41 | out.write(textField.getText().getBytes()); |
| 42 | out.write('\n'); |
| 43 | out.flush(); |
| 44 | } catch (IOException e) { |
| 45 | e.printStackTrace(); |
| 46 | } |
| 47 | textField.setText(""); |
| 48 | } |
| 49 | }); |
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public boolean requiresAuthorization() { |
nothing calls this directly
no test coverage detected