Jump to: navigation, search

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

 
(2 intermediate revisions by 2 users not shown)
Line 10: Line 10:
  
 
== Articles ==
 
== Articles ==
*[[http://www.eclipse.org/articles/article.php?file=Article-Swing-SWT-Integration/index.html Swing/SWT Integration]] Article on eclise.org
+
*[[http://www.eclipse.org/articles/article.php?file=Article-Swing-SWT-Integration/index.html Swing/SWT Integration]] Article on eclipse.org
  
 
== See Also: ==
 
== See Also: ==
 
*[[FAQ Is SWT better than Swing?]]
 
*[[FAQ Is SWT better than Swing?]]
 
*[http://www.eclipse.org/albireo/ Albireo] Albireo is an Eclipse Technology project (in incubation phase) that simplifies the task of combining user interface components from the Swing and SWT toolkits. It builds on SWT's standard SWT_AWT  bridge, implementing much of the tricky code that is currently left to the developer.  
 
*[http://www.eclipse.org/albireo/ Albireo] Albireo is an Eclipse Technology project (in incubation phase) that simplifies the task of combining user interface components from the Swing and SWT toolkits. It builds on SWT's standard SWT_AWT  bridge, implementing much of the tricky code that is currently left to the developer.  
 
+
*[http://djproject.sourceforge.net/ DJ project] The other way around. The DJ Project lets you embed SWT components in Swing.
 
{{Template:FAQ_Tagline}}
 
{{Template:FAQ_Tagline}}

Latest revision as of 09:14, 19 November 2012

In Eclipse 3.0, APIs have been introduced for integrating AWT and Swing with SWT. This support is “product-quality” 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.

Articles

See Also:

  • FAQ Is SWT better than Swing?
  • Albireo Albireo is an Eclipse Technology project (in incubation phase) that simplifies the task of combining user interface components from the Swing and SWT toolkits. It builds on SWT's standard SWT_AWT bridge, implementing much of the tricky code that is currently left to the developer.
  • DJ project The other way around. The DJ Project lets you embed SWT components in Swing.

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.