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

R

Ryan

I have seen tons of info on embedding Swing components in SWT apps,
but not the other way around.
 
Z

Zig

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top