Problems with the SWT / AWT bridge?

After noon,

I am working on an Eclipse RCP plugin. I want to embed a Swing component in it. I am currently using the SWT ↔ AWT bridge as follows:

Applet applet = new myApplet();
Composite swtAwtComponent = new Composite(parent, SWT.EMBEDDED);
java.awt.Frame frame = SWT_AWT.new_Frame( swtAwtComponent );
applet.init();
frame.add(applet);

Are there any significant issues with this approach, or is there a better approach that I should consider? How this will affect threading / concurrency in the application.

thank

+3
source share
1 answer

There are certain problems with the SWT_AWT bridge:

  • - . , , SWT, AWT, . , . , EventQueue # invokeLater Display # asyncExec.

  • - . SWT , AWT . , . .

  • , , , .

  • , , .

, , FAQ, - SWT_AWT.

+5

Source: https://habr.com/ru/post/1732741/


All Articles