Commit 1cecc6c
committed
SwingTextDisplayPanel: keep scroll pane at the top
After adding a bunch of text, the text pane's default behavior is to
scroll the caret position to the bottom. It is nicer for readability to
start at the top, so let's reset the caret position after adding text
each time.1 parent ddf9946 commit 1cecc6c
File tree
1 file changed
+1
-0
lines changed- src/main/java/org/scijava/ui/swing/viewer/text
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
0 commit comments