psmith 2003/09/26 01:16:27
Modified: src/java/org/apache/log4j/chainsaw LogPanel.java
Log:
Still trying to track down a bug in JDK 1.4.2 (I think it's only this version).
While the logger tree panel is visible, if you hold down the
ctrl key and mouse over a one of the filterable columns the cursor
changes to the Magnify (this is good).
When the Logger tree panel is not visible, the mouse cursor
doesn't change (even though the filtering will still work).
Weird.
Revision Changes Path
1.14 +8 -1 jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogPanel.java
Index: LogPanel.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogPanel.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- LogPanel.java 19 Sep 2003 04:00:09 -0000 1.13
+++ LogPanel.java 26 Sep 2003 08:16:27 -0000 1.14
@@ -1901,13 +1901,20 @@
}
public void mouseMoved(MouseEvent e) {
+// LogLog.debug(e.toString());
int col = table.columnAtPoint(e.getPoint());
+
+// TODO This is a Bug or something, but InputEvent.CTRL_DOWN_MASK only works
+// in JDK 1.4.2 when the LoggerTreePanel is open, if it is closed, it doesn't
work... CTRL_DOWN_MASK
+// is ok though... Strange. Copied the mask from 1.4.2 here
if (
- ((e.getModifiers() & InputEvent.CTRL_MASK) > 0)
+ ((e.getModifiers() & (1 << 7))> 0) || ((e.getModifiers() &
InputEvent.CTRL_MASK)> 0)
&& isFocusableColumn(col)) {
table.setCursor(ChainsawColumns.CURSOR_FOCUS_ON);
} else {
+// LogLog.debug("MouseMoved, ((e.getModifiers() & InputEvent.CTRL_MASK) >
0)=" + ((e.getModifiers() & InputEvent.CTRL_MASK) > 0) + ", isFocusableColumn(col)="
+ isFocusableColumn(col));
+// LogLog.debug(e.toString());
table.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]