Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

Is it possible to embed SWT widget in a Swing application?

Thread view: 
Ryan - 21 Dec 2007 07:30 GMT
I have seen tons of info on embedding Swing components in SWT apps,
but not the other way around.
Zig - 22 Dec 2007 02:24 GMT
> I have seen tons of info on embedding Swing components in SWT apps,
> but not the other way around.

Take a look at

org.eclipse.swt.awt.SWT_AWT.new_Shell(Display, Canvas)

I've never tried it, but in theory that should allow you to use it. My  
experience with the SWT_AWT class (from eclipse 3.1) was that it was a bit  
flakey (spurious exceptions, some screen refreshes don't paint right, and  
the window manager occassionally shows windows open for each component).  
It's good for temporarily integrating modules from the two toolkits, but  
you will probably do yourself a big service in porting your code into one  
toolkit.

HTH,

-Zig


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.