From eb19f273263973cd9864fa6cf7fdd16c78559c4f Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Fri, 14 May 2004 23:16:23 +0000 Subject: 60934 & 56170 --- .../Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org') diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java index d2c2a1bc23..2304942fef 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java @@ -32,6 +32,10 @@ import java.awt.Frame; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; +/* Swing Imports */ +import javax.swing.MenuSelectionManager; +import javax.swing.UIManager; + /** * This class provides a bridge between SWT and AWT, so that it * is possible to embedded AWT components in SWT and vice versa. @@ -91,6 +95,7 @@ public static Frame new_Frame (final Composite parent) { } catch (Throwable e) { SWT.error (SWT.ERROR_NOT_IMPLEMENTED, e); } + UIManager.getDefaults(); Object value = null; Constructor constructor = null; try { @@ -121,6 +126,12 @@ public static Frame new_Frame (final Composite parent) { }); } }); + parent.addListener (SWT.Deactivate, new Listener () { + public void handleEvent (Event event) { + MenuSelectionManager manager = MenuSelectionManager.defaultManager(); + manager.clearSelectedPath(); + } + }); parent.addListener (SWT.Dispose, new Listener () { public void handleEvent (Event event) { parent.setVisible(false); -- cgit