Migrating Swing Application [message #462335] |
Mon, 10 October 2005 19:46 |
Eclipse User |
|
|
|
Originally posted by: simon.guertin.usherbrooke.ca
Hi, I have an application still in developpment phases and is completely
in swing.
I would now like to develop the new user interface in SWT. I quickly
tried but failed. Is there a way to have an application running bth
swing JFrames and AWT Shells in the same application? Or do I have to
migrating my complete application so I only use SWT?
I would like to migrate only one JFrame at the time and not the complete
application and still be able to run the new 'In Between' application.
I try to do this from a JMenuItem:
SubscribeWindow w = new SubscribeWindow();
w.open();
and the in the SWT class I do this in the constructor:
Display display = new Display();
sShell = new Shell(display);
and in the open():
createSShell();
Display display = sShell.getDisplay();
while(!sShell.isDisposed()){
if(!display.readAndDispatch())
display.sleep();
}
My application just seems to be frozen after I click on the menu to open
this window.
Thank you
Simon
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05023 seconds