Skip to content

Commit

Permalink
自动滚动
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed May 10, 2024
1 parent 428d507 commit 061f632
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void append(LogEvent event) {
int posOfLastLineToTrunk = textArea.getLineEndOffset(linesToCut - 1);
textArea.replaceRange("", 0, posOfLastLineToTrunk);
}
textArea.setCaretPosition(textArea.getDocument().getLength());
} catch (Throwable throwable) {
throwable.printStackTrace();
}
Expand Down

0 comments on commit 061f632

Please sign in to comment.