Using Swing's Frame with SWT-Project included [message #257055] |
Sat, 24 May 2008 14:46 |
Eclipse User |
|
|
|
Originally posted by: alexhofi.gmx.net
Hi all,
I'm currently developing a small Java-Application with Eclipse on Mac OS
X Leopard, and plan to support different GUIs based on SWT or Swing/AWT.
But when I reference the SWT-Project (or simply reference any swt.jar as
a library), GUIs based on AWT/Swing will not work any more - even if I
don't actually use any SWT-Classes but just reference the SWT-Project.
The Window of my application will show up, but I can't focus it.
I'm not actually combining SWT and AWT code (nor using SWT_AWT or
similar), the classes using SWT or AWT get loaded on startup with a
little help of java.lang.reflect using the appropriate classname from a
static String field.
Is there any change to have the SWT libraries included and still being
able to construct a GUI based on AWT/Swing?
Thanks in advance,
Alexander Hofmann.
|
|
|
Powered by
FUDForum. Page generated in 0.38343 seconds