views:

36

answers:

2

When using the SWT/AWT bridge to draw Swing components inside an SWT application, can these components benefit from AWT's hardware acceleration?

A: 

No, they cannot. Swing is being drawn by its own. And this is bad practice to mix AWT or SWT and Swing controls.

Paweł Dyda
The fact that Swing draws its own controls doesn't prevent HW acceleration. Swing has been hardware-accelerated for quite some time now.
Joey
@Joey Thanks. Good to know that.
Paweł Dyda
+1  A: 

Running SWT_AWT does not change a way Swing components bahave. They will behave just as in standalone app.

Eugene
Can you provide a reference for your proposition?
ziggystar
SWT uses JNI to talk to Java Swing. SWT is basically native widgets (win32/Cocoa/GTK) so Java behaves just the same way as if it was integrated into native app.
Eugene
I accept this answer as correct - it sounds plausible. I can't verify it because we have switched to a SWT library.
ziggystar