Commit ad58bd7
committed
SwingConsolePane: keep console pane at the bottom
If the console pane is scrolled to the bottom, and there is new output,
let's keep it scrolled to the bottom, so that output can be easily
tracked by the human eye. But if the scroll bar is _not_ at the bottom,
let's leave it where it is, to avoid disrupting the user.
This matches the behavior of most terminal applications.
Closes #7.1 parent 0cb660c commit ad58bd7
File tree
1 file changed
+3
-0
lines changed- src/main/java/org/scijava/ui/swing/console
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
0 commit comments