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
2010-09-13 12:12:12
The fact that Swing draws its own controls doesn't prevent HW acceleration. Swing has been hardware-accelerated for quite some time now.
Joey
2010-09-13 12:27:25
@Joey Thanks. Good to know that.
Paweł Dyda
2010-09-13 18:33:54
+1
A:
Running SWT_AWT does not change a way Swing components bahave. They will behave just as in standalone app.
Eugene
2010-09-13 22:00:05
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
2010-09-27 18:05:30
I accept this answer as correct - it sounds plausible. I can't verify it because we have switched to a SWT library.
ziggystar
2010-10-20 09:48:30