Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt dialog\wizrd from swing
swt dialog\wizrd from swing [message #463886] Tue, 15 November 2005 14:59
Michelle Tadmor is currently offline Michelle TadmorFriend
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();


}
......



}
Previous Topic:problem with key-bindings
Next Topic:embed swing in swt
Goto Forum:
  


Current Time: Thu Apr 25 05:13:54 GMT 2024

Powered by FUDForum. Page generated in 0.03455 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top