Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "FAQ How do I embed AWT and Swing inside SWT?"

 
m
Line 8: Line 8:
 
created by <tt>SWT_AWT</tt> handles forwarding of SWT events to the  
 
created by <tt>SWT_AWT</tt> handles forwarding of SWT events to the  
 
corresponding AWT events within the frame.
 
corresponding AWT events within the frame.
 
 
 
 
 
  
 
== See Also: ==
 
== See Also: ==
 +
*[[FAQ Is SWT better than Swing?]]
  
 
+
{{Template:FAQ_Tagline}}
[[FAQ_Is_SWT_better_than_Swing%3F]]
+
 
+
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>
+

Revision as of 01:09, 16 June 2006

In Eclipse 3.0, APIs have been introduced for integrating AWT and Swing with SWT. This support is &#147;product-quality&#148; on Windows and has only early access support on Linux under JDK 1.5. The main entry point for AWT integration is the class SWT_AWT. It provides a factory method, new_Frame, that creates an AWT Frame that is parented within an SWT Composite. From there, you can create whatever AWT components you want within that frame. The bridging layer created by SWT_AWT handles forwarding of SWT events to the corresponding AWT events within the frame.

See Also:


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top