Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » SWT_AWT bridge usage
SWT_AWT bridge usage [message #460895] Tue, 02 January 2007 07:03 Go to next message
Eclipse UserFriend
Originally posted by: chezanand.gmail.com

Hi

I have a Swing application for which I have source code for some parts while
the rest are available as jar files. I have the following questions:

a) To convert this application to SWT, is it enough to just convert the
application parent window?
OR
b) is it that every Swing widget has to be converted separately to SWT ?
c) How to deal with Swing widgets in the jar files for which I have no
source code ?

Is it advisable to use SWT_AWT bridge or rewrite the Swing code to SWT?.

Thanks in advance!

regards,
Chez
Re: SWT_AWT bridge usage [message #461042 is a reply to message #460895] Thu, 04 January 2007 11:50 Go to previous message
Eclipse UserFriend
Originally posted by: sbonatesta.alice.it

<i>Hi Chez, I have a similar problem: a swing application (using jgraph) that has now to run as RCP application. I reuse the inner JPanel of the initial swing application:</i>


Composite composite;
...
JPanel panel = new JPanel(); // This is the panel of the swing app
Composite SWT_AWT_container = new Composite(composite, SWT.EMBEDDED);
Frame awt = SWT_AWT.new_Frame(SWT_AWT_container);
awt.add(panel);
awt.setVisible(true);


<i>I hope this will help you, I don't know if is exactly what you need (depends on the application you have)</i>
Previous Topic:How to specify a file in the config.ini file
Next Topic:Add code to read my extension point and update editor menu
Goto Forum:
  


Current Time: Mon Sep 23 15:53:54 GMT 2024

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

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

Back to the top