Closed GoogleCodeExporter closed 9 years ago
It seems that (3) above is possible (at least in Arduino 0017 on Mac OS X
10.5.8 with
JVM 1.5.0_19). Sliding the scroll bar for the output text area stops
scrolling.
Unfortunately, I cannot find a way to re-enable auto-scrolling for the Serial
Monitor
without closing and re-opening the Serial Monitor window.
A way to solve this is to re-enable auto-scrolling when serial data is sent by
the
user. The patch below is one way to do this:
--
% diff -u app/src/processing/app/SerialMonitor.java
app/src/processing/app/SerialMonitor-tod.java
--- app/src/processing/app/SerialMonitor.java 2009-10-12 16:30:55.000000000
-0700
+++ app/src/processing/app/SerialMonitor-tod.java 2009-10-12 16:34:26.000000000
-0700
@@ -74,6 +74,7 @@
public void actionPerformed(ActionEvent e) {
send(textField.getText());
textField.setText("");
+ textArea.setCaretPosition(textArea.getDocument().getLength());
}});
sendButton = new JButton("Send");
@@ -81,6 +82,7 @@
public void actionPerformed(ActionEvent e) {
send(textField.getText());
textField.setText("");
+ textArea.setCaretPosition(textArea.getDocument().getLength());
}});
pane.add(textField, BorderLayout.CENTER);
Original comment by tod.k...@gmail.com
on 12 Oct 2009 at 11:46
This issue has been replaced with individual one for the various suggestions.
Original comment by dmel...@gmail.com
on 1 Apr 2010 at 6:26
Original issue reported on code.google.com by
ahdavids...@gmail.com
on 25 Aug 2009 at 10:37