diff options
author | Silenio Quarti <silenio> | 2004-06-02 19:53:43 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2004-06-02 19:53:43 +0000 |
commit | 576e4c76e143167a98ac017cf1f2d4a48b81c8b4 (patch) | |
tree | 2e3f93e9462dec7b2656c802ef99eb59ade5a4ab | |
parent | a2fb3a842232aca558a6dbf413530f1142004f3e (diff) | |
download | eclipse.platform.swt-576e4c76e143167a98ac017cf1f2d4a48b81c8b4.tar.gz eclipse.platform.swt-576e4c76e143167a98ac017cf1f2d4a48b81c8b4.tar.xz eclipse.platform.swt-576e4c76e143167a98ac017cf1f2d4a48b81c8b4.zip |
58308
4 files changed, 29 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/emulated/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/emulated/org/eclipse/swt/awt/SWT_AWT.java index 7bbf8f5da6..fe94907b46 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/emulated/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/emulated/org/eclipse/swt/awt/SWT_AWT.java @@ -37,6 +37,13 @@ public class SWT_AWT { * the AWT components that will be embedded within the composite. In order * for the embedding to succeed, the composite must have been created * with the SWT.EMBEDDED style. + * <p> + * IMPORTANT: As of JDK1.5, the embedded frame does not receive mouse events. + * When a lightweight component is added as a child of the embedded frame, + * the cursor does not change. In order to work around both these problems, it is + * strongly recommended that a heightweight component such as <code>java.awt.Panel</code> + * be added to the frame as the root of all components. + * </p> * * @param parent the parent <code>Composite</code> of the new <code>java.awt.Frame</code> * @return a <code>java.awt.Frame</code> to be the parent of the embedded AWT components 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 b9b254ed01..39fa8bc7f5 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 @@ -66,6 +66,13 @@ static synchronized void loadLibrary () { * the AWT components that will be embedded within the composite. In order * for the embedding to succeed, the composite must have been created * with the SWT.EMBEDDED style. + * <p> + * IMPORTANT: As of JDK1.5, the embedded frame does not receive mouse events. + * When a lightweight component is added as a child of the embedded frame, + * the cursor does not change. In order to work around both these problems, it is + * strongly recommended that a heightweight component such as <code>java.awt.Panel</code> + * be added to the frame as the root of all components. + * </p> * * @param parent the parent <code>Composite</code> of the new <code>java.awt.Frame</code> * @return a <code>java.awt.Frame</code> to be the parent of the embedded AWT components diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java index 71a2252eee..21fd85d179 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java @@ -66,6 +66,13 @@ static synchronized void loadLibrary () { * the AWT components that will be embedded within the composite. In order * for the embedding to succeed, the composite must have been created * with the SWT.EMBEDDED style. + * <p> + * IMPORTANT: As of JDK1.5, the embedded frame does not receive mouse events. + * When a lightweight component is added as a child of the embedded frame, + * the cursor does not change. In order to work around both these problems, it is + * strongly recommended that a heightweight component such as <code>java.awt.Panel</code> + * be added to the frame as the root of all components. + * </p> * * @param parent the parent <code>Composite</code> of the new <code>java.awt.Frame</code> * @return a <code>java.awt.Frame</code> to be the parent of the embedded AWT components diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/org/eclipse/swt/awt/SWT_AWT.java index 7d1f179aef..74fa84b198 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/win32/org/eclipse/swt/awt/SWT_AWT.java @@ -75,6 +75,13 @@ static synchronized void loadLibrary () { * the AWT components that will be embedded within the composite. In order * for the embedding to succeed, the composite must have been created * with the SWT.EMBEDDED style. + * <p> + * IMPORTANT: As of JDK1.5, the embedded frame does not receive mouse events. + * When a lightweight component is added as a child of the embedded frame, + * the cursor does not change. In order to work around both these problems, it is + * strongly recommended that a heightweight component such as <code>java.awt.Panel</code> + * be added to the frame as the root of all components. + * </p> * * @param parent the parent <code>Composite</code> of the new <code>java.awt.Frame</code> * @return a <code>java.awt.Frame</code> to be the parent of the embedded AWT components @@ -124,7 +131,7 @@ public static Frame new_Frame (final Composite parent) { final Frame frame = (Frame) value; /* - * This is necessary to make lightweigth components + * This is necessary to make lightweight components * directly added to the frame receive mouse events * properly. */ |