|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.awt.SWT_AWT
This class provides a bridge between SWT and AWT, so that it is possible to embedded AWT components in SWT and vice versa.
Field Summary | |
static String |
embeddedFrameClass
The name of the embedded Frame class. |
Constructor Summary | |
SWT_AWT()
|
Method Summary | |
static Frame |
new_Frame(Composite parent)
Creates a new java.awt.Frame . |
static Shell |
new_Shell(Display display,
Canvas parent)
Creates a new Shell . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String embeddedFrameClass
null
.
Constructor Detail |
public SWT_AWT()
Method Detail |
public static Frame new_Frame(Composite parent)
java.awt.Frame
. This frame is the root for
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.
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 heavyweight component such as java.awt.Panel
be added to the frame as the root of all components.
parent
- the parent Composite
of the new java.awt.Frame
java.awt.Frame
to be the parent of the embedded AWT components
IllegalArgumentException
- public static Shell new_Shell(Display display, Canvas parent)
Shell
. This Shell is the root for
the SWT widgets that will be embedded within the AWT canvas.
display
- the display for the new Shellparent
- the parent java.awt.Canvas
of the new Shell
Shell
to be the parent of the embedded SWT widgets
IllegalArgumentException
-
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.