sdeboy 2004/06/21 22:57:09
Modified: src/java/org/apache/log4j/chainsaw LogPanel.java
Log:
Small change to 'scroll to bottom' functionality:
When the 'scroll to bottom' context menu is selected, the bottom row is selected.
Previously the 'stickiness' of scroll to bottom was activated by manually selecting
the bottom row (usually ctrl-end)
Revision Changes Path
1.77 +3 -0 logging-log4j/src/java/org/apache/log4j/chainsaw/LogPanel.java
Index: LogPanel.java
===================================================================
RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/chainsaw/LogPanel.java,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- LogPanel.java 20 Jun 2004 07:28:53 -0000 1.76
+++ LogPanel.java 22 Jun 2004 05:57:08 -0000 1.77
@@ -545,6 +545,9 @@
boolean value = ((Boolean) evt.getNewValue()).booleanValue();
menuItemScrollBottom.setSelected(value);
scroll = value;
+ if (scroll) {
+
table.scrollToBottom(table.columnAtPoint(table.getVisibleRect().getLocation()));
+ }
}
});
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]