Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Applet as substitute for SWT/AWT Bridged component?
Applet as substitute for SWT/AWT Bridged component? [message #52384] Wed, 17 October 2007 11:51 Go to next message
Henzler Peter is currently offline Henzler PeterFriend
Messages: 19
Registered: July 2009
Junior Member
Is there a way to embed a Swing component as a java applet in a RAP
application?
I have an existing GUI-Component based on Swing.
In Eclipse RCP I can embed it in a Composite with the SWT/AWT bridge.
But when I would use RAP with the same code the SWT/AWT implementation is
missing.
As the RAP side is browser based, I am wondering if it would be possible
to build a custom RAP widget. The swing component could be embedded in a
applet and that RAP component could be in charge to make that applet
appear in the browser.
Does anybody know if such a workaround would be possible?
Re: Applet as substitute for SWT/AWT Bridged component? [message #52444 is a reply to message #52384] Wed, 17 October 2007 12:36 Go to previous messageGo to next message
Alexander Forschnr is currently offline Alexander ForschnrFriend
Messages: 21
Registered: July 2009
Junior Member
Peter Henzler schrieb:
> Is there a way to embed a Swing component as a java applet in a RAP
> application?
> I have an existing GUI-Component based on Swing.
> In Eclipse RCP I can embed it in a Composite with the SWT/AWT bridge.
> But when I would use RAP with the same code the SWT/AWT implementation
> is missing.
> As the RAP side is browser based, I am wondering if it would be possible
> to build a custom RAP widget. The swing component could be embedded in a
> applet and that RAP component could be in charge to make that applet
> appear in the browser.
> Does anybody know if such a workaround would be possible?

I think, the bridge is not implemented, yet, but will be in a future
release:

http://wiki.eclipse.org/index.php/RapPlan#Out_of_scope_for_v ersion_1.0
Re: Applet as substitute for SWT/AWT Bridged component? [message #53067 is a reply to message #52384] Thu, 18 October 2007 07:42 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I think such a workaround is possible -in principle. For information about
creating custom widgets you may have a look at
http://help.eclipse.org/help33/topic/org.eclipse.rap.help/he lp/html/advanced/custom-widget.html.
But note that differnt to the RCP approach there would be a need to
encapsulate the communication between the applet and the server side. I mean
if you're using an AWT button (for example) that triggers some action
directly in your RCP application then you have encapsulate such a
functionality and relay the triggered event of the button back to the
server. But as I already mentionend - in principle this should be possible.


Ciao
Frank

"Peter Henzler" <phe@scodi.ch> schrieb im Newsbeitrag
news:d7f6856ee602c9a70aeee4a7f8f25dab$1@www.eclipse.org...
> Is there a way to embed a Swing component as a java applet in a RAP
> application?
> I have an existing GUI-Component based on Swing.
> In Eclipse RCP I can embed it in a Composite with the SWT/AWT bridge.
> But when I would use RAP with the same code the SWT/AWT implementation is
> missing.
> As the RAP side is browser based, I am wondering if it would be possible
> to build a custom RAP widget. The swing component could be embedded in a
> applet and that RAP component could be in charge to make that applet
> appear in the browser.
> Does anybody know if such a workaround would be possible?
>
Previous Topic:Doubts about DefaultAppearance.js
Next Topic:Exception: No context available outside of the request service lifecycle
Goto Forum:
  


Current Time: Thu Apr 25 19:15:35 GMT 2024

Powered by FUDForum. Page generated in 0.03745 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top