[Schmitzm-commits] r1784 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing/log4j
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Nov 17 14:47:01 CET 2011
Author: mojays
Date: 2011-11-17 14:47:01 +0100 (Thu, 17 Nov 2011)
New Revision: 1784
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/swing/log4j/TextComponentAppender.java
Log:
BugFix
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/log4j/TextComponentAppender.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/log4j/TextComponentAppender.java 2011-11-17 13:03:53 UTC (rev 1783)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/log4j/TextComponentAppender.java 2011-11-17 13:47:01 UTC (rev 1784)
@@ -91,15 +91,15 @@
Runnable work = new Runnable() {
@Override
public void run() {
- lastUpdate = System.currentTimeMillis();
// Optimization: use the append method for
// JTextArea
if ( textComp instanceof JTextArea ) {
((JTextArea)textComp).append(textBuffer.toString());
- return;
+ } else {
+ // general JTextComponent implementation
+ textComp.setText( textComp.getText() + textBuffer.toString() );
}
- // general JTextComponent implementation
- textComp.setText( textComp.getText() + textBuffer.toString() );
+ lastUpdate = System.currentTimeMillis();
textBuffer = new StringBuffer();
}
};
More information about the Schmitzm-commits
mailing list