From 5e1ec7b34e30fb44c1dfd70b487997b278c5ef1f Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 15 Feb 2011 16:30:33 +0000 Subject: [PATCH] fix for JAL-776 --- src/jalview/gui/Desktop.java | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 580fceb..c58de43 100755 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -27,6 +27,7 @@ import java.awt.dnd.*; import java.awt.event.*; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; +import java.beans.PropertyVetoException; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; @@ -577,6 +578,47 @@ public class Desktop extends jalview.jbgui.GDesktop implements } } }); + menuItem.addMouseListener(new MouseListener() + { + + @Override + public void mouseReleased(MouseEvent e) + { + } + + @Override + public void mousePressed(MouseEvent e) + { + } + + @Override + public void mouseExited(MouseEvent e) + { + try + { + frame.setSelected(false); + } catch (PropertyVetoException e1) + { + } + } + + @Override + public void mouseEntered(MouseEvent e) + { + try + { + frame.setSelected(true); + } catch (PropertyVetoException e1) + { + } + } + + @Override + public void mouseClicked(MouseEvent e) + { + + } + }); windowMenu.add(menuItem); -- 1.7.10.2