SWT_AWT bridge usage [message #460895] |
Tue, 02 January 2007 07:03 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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>
|
|
|
Powered by
FUDForum. Page generated in 0.03008 seconds