swt dialog\wizrd from swing [message #463886] |
Tue, 15 November 2005 14:59 |
Michelle Tadmor Messages: 23 Registered: July 2009 |
Junior Member |
|
|
hey i got a swing application that when a certain button is pressed it pops
up an swt wizard. Trouble is the Swing frame no longer repaints itself. when
i finish with the swt wizard the swing frame in the background still does
not respond and stays like that until i minimize it and restore it from the
taskbar.
public class myFram extends JFrame {
......
.....
public void someButton_actionPerformed() {
Shell shell = new Shell();
Wizard wizard = new MyWizard();
WizardDialog dialog = new WizardDialog(shell, wizard);
dialog.setBlockOnOpen(true);
int returnCode = dialog.open();
if (returnCode == Dialog.OK)
System.out.println("Finished!");
else
System.out.println("Cancelled");
shell.dispose();
}
......
}
|
|
|
Powered by
FUDForum. Page generated in 0.03455 seconds