Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Swing Vs SWT Problems.
Swing Vs SWT Problems. [message #462934] Fri, 21 October 2005 04:21 Go to next message
Jeff is currently offline Jeff
Messages: 21
Registered: July 2009
Junior Member
Hi all,

I have some problem in SWT. I have a seperate Swing application and a SWT
application. I need to embaded this swing application in to the
MultipageEditor of the SWT application. I can't change the swing
application but can do changes to the SWT application.

Can any one explain me the steps briefly about what should I do for it.

Hope a reply soon.

regards,
Jeff.
Re: Swing Vs SWT Problems. [message #462943 is a reply to message #462934] Fri, 21 October 2005 11:16 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
Hi Jeff,

The approach is to create an SWT Composite with style EMBEDDED, and use
SWT_AWT.new_Frame(composite) to create an AWT Frame within it. Two example
snippets of this are:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet135.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet154.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

Grant

"Jeff" <niroshan_bala@yahho.co.uk> wrote in message
news:6e0a1c40981243be6c9685e48109ba27$1@www.eclipse.org...
> Hi all,
>
> I have some problem in SWT. I have a seperate Swing application and a SWT
> application. I need to embaded this swing application in to the
> MultipageEditor of the SWT application. I can't change the swing
> application but can do changes to the SWT application.
>
> Can any one explain me the steps briefly about what should I do for it.
>
> Hope a reply soon.
>
> regards,
> Jeff.
>
Re: Swing Vs SWT Problems. [message #462947 is a reply to message #462943] Fri, 21 October 2005 12:17 Go to previous message
David Thomson is currently offline David Thomson
Messages: 65
Registered: July 2009
Member
Yes, but please beware that this will force your application to be Windows
and Linux only.

David
"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:djb0pa$dhl$1@news.eclipse.org...
> Hi Jeff,
>
> The approach is to create an SWT Composite with style EMBEDDED, and use
> SWT_AWT.new_Frame(composite) to create an AWT Frame within it. Two
example
> snippets of this are:
>
Previous Topic:TabFolder border ...
Next Topic:Hyperlink wrapping in ScrolledForm
Goto Forum:
  


Current Time: Fri Apr 18 11:43:23 EDT 2014

Powered by FUDForum. Page generated in 0.10048 seconds