From: jprocter Date: Sun, 20 Nov 2011 18:44:36 +0000 (+0000) Subject: (JAL-1004) add mouse listener to internal panel X-Git-Tag: Archived_Release_2_7~16^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d7a7d7eabcf6079012f4019086df56c48d819ae4;p=jalview.git (JAL-1004) add mouse listener to internal panel --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 2a72e44..1da4996 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -335,7 +335,8 @@ public class Desktop extends jalview.jbgui.GDesktop implements } }); - this.addMouseListener(new MouseAdapter() + MouseAdapter ma; + this.addMouseListener(ma=new MouseAdapter() { public void mousePressed(MouseEvent evt) { @@ -345,6 +346,8 @@ public class Desktop extends jalview.jbgui.GDesktop implements } } }); + desktop.addMouseListener(ma); + this.addFocusListener(new FocusListener() { @@ -2052,7 +2055,6 @@ public class Desktop extends jalview.jbgui.GDesktop implements } } } - } /**