- Timestamp:
- 2016-08-01T20:40:03+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/InspectPrimitiveDialog.java
r10619 r10694 100 100 jte.setEditable(false); 101 101 jte.append(s); 102 jte.setCaretPosition(0); 102 103 p.add(new JScrollPane(jte), GBC.std().fill()); 103 104 return p; -
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r10627 r10694 659 659 txtSource.append("<ERROR: failed to read file!>"); 660 660 } 661 txtSource.setCaretPosition(0); 661 662 } 662 663 … … 669 670 txtErrors.append(t.toString() + '\n'); 670 671 } 672 txtErrors.setCaretPosition(0); 671 673 } 672 674 } -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmTextArea.java
r10665 r10694 6 6 7 7 import javax.swing.JTextArea; 8 import javax.swing.text.Caret;9 import javax.swing.text.DefaultCaret;10 8 import javax.swing.text.Document; 11 9 … … 90 88 TextContextualPopupMenu.enableMenuFor(this, true); 91 89 addFocusListener(this); 92 Caret c = getCaret();93 if (c instanceof DefaultCaret) {94 // Prevent component to scroll down after setting large text, forcing users to initially scroll up95 ((DefaultCaret) c).setUpdatePolicy(DefaultCaret.NEVER_UPDATE);96 }97 90 } 98 91
Note:
See TracChangeset
for help on using the changeset viewer.