Any way to embed a Swing JFrame in the AWT Frame from the SWT_AWT bridge?
I'm integrating a Swing application into an Bioclipse/Eclipse plug-in, and since Eclipse uses SWT, I have to use the SWT_AWT bridge somehow.
The problem is that the starting point I get from the SWT_AWT bridge is an AWT Frame, like so:
java.awt.Frame awtFrame = SWT_AWT.new_Frame(composite);
... (which can be filled with AW开发者_StackOverflow社区T components), but the situation is that the Swing application contains much of it's functionality in it's main JFrame component. Now, a Swing JFrame can not be integrated as is into an AWT Frame.
Refactoring of the original Swing application has been discussed with the developer of the original application. Just wanted to make sure we didn't miss any obvious workaround for this?
This is an excellent article on how to use Swing inside your SWT/RCP apps. This should be helpful.
精彩评论