MCPcopy
hub / github.com/arduino/Arduino / actionPerformed

Method actionPerformed

app/src/processing/app/NetworkMonitor.java:38–48  ·  view source on GitHub ↗
(ActionEvent event)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

printStackTraceMethod · 0.80
getTextMethod · 0.65
writeMethod · 0.45
flushMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected