Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Re-add listener removed in last commit
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/logging/chainsaw/trunk@1032185 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
scottdeboy committed Nov 6, 2010
1 parent 55d593d commit db94959
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/apache/log4j/chainsaw/LogPanel.java
Expand Up @@ -366,6 +366,16 @@ public void windowClosing(WindowEvent e) {
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
*/
Expand Down

0 comments on commit db94959

Please sign in to comment.