logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sde...@apache.org
Subject svn commit: r1032185 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java
Date Sat, 06 Nov 2010 23:48:15 GMT
Author: sdeboy
Date: Sat Nov  6 23:48:15 2010
New Revision: 1032185

URL: http://svn.apache.org/viewvc?rev=1032185&view=rev
Log:
Re-add listener removed in last commit

Modified:
    logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java

Modified: logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java
URL: http://svn.apache.org/viewvc/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java?rev=1032185&r1=1032184&r2=1032185&view=diff
==============================================================================
--- logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java (original)
+++ logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java Sat Nov 
6 23:48:15 2010
@@ -366,6 +366,16 @@ public class LogPanel extends DockablePa
     undockedFrame.setSize(new Dimension(1024, 768));
     undockedFrame.pack();
 
+    preferenceModel.addPropertyChangeListener(
+      "scrollToBottom",
+      new PropertyChangeListener() {
+        public void propertyChange(PropertyChangeEvent evt) {
+          boolean value = ((Boolean) evt.getNewValue()).booleanValue();
+          if (value) {
+            scrollToBottom();
+          }
+        }
+      });
     /*
      * Menus on which the preferencemodels rely
      */



Mime
View raw message