[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: SWT_AWT bridge usage

<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>