From: amwaterhouse Date: Tue, 6 Dec 2005 12:19:44 +0000 (+0000) Subject: Add internalFrameActivated listener X-Git-Tag: Release_2_07~47 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=02617c1fbf12985e02c38532d00ffffd3bfae19a;p=jalview.git Add internalFrameActivated listener --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 3acefe7..8a96033 100755 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -187,6 +187,15 @@ public class Desktop extends jalview.jbgui.GDesktop final JMenuItem menuItem = new JMenuItem(title); frame.addInternalFrameListener(new javax.swing.event.InternalFrameAdapter() { + public void internalFrameActivated(javax.swing.event. + InternalFrameEvent evt) + { + JInternalFrame itf = desktop.getSelectedFrame(); + if (itf != null) + itf.requestFocus(); + + } + public void internalFrameClosed( javax.swing.event.InternalFrameEvent evt) {