svn commit: r959504 - /logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/LogPanel.java

[email protected]
Newsgroups gmane.comp.apache.logging
Message-ID <[email protected]>
Author: sdeboy
Date: Thu Jul  1 04:37:57 2010
New Revision: 959504

URL: http://svn.apache.org/viewvc?rev=959504&view=rev
Log:
Replaced the only 1.6-specific Swing dependency in Chainsaw with a 1.5 compatible API (MouseAdapter didn't implement MouseMotionListener in 1.5)

Chainsaw now builds fine with JDK 1.5 and appears to run on a 1.5 JVM without issue.

Chainsaw will NOT compile with JDK 1.4.

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=959504&r1=959503&r2=959504&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 Thu Jul  1 04:37:57 2010
@@ -3274,7 +3274,7 @@ public class LogPanel extends DockablePa
                 }
             });
             
-            addMouseMotionListener(new MouseAdapter() {
+            addMouseMotionListener(new MouseMotionAdapter() {
               public void mouseMoved(MouseEvent e) {
                 if (preferenceModel.isThumbnailBarToolTips()) {
                     int yPosition = e.getPoint().y;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.