File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes SWT - Popping up new Window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT - Popping up new Window" Watch "SWT - Popping up new Window" New topic
Author

SWT - Popping up new Window

Blair Morton
Greenhorn

Joined: Sep 13, 2004
Posts: 2
This is definitely a greenhorn question. I am working on some SWT tutorials, but I have a requirement to go from one screen to the next. In this case, I want to go from a Login screen to the main screen, when the user presses the "LOGIN" button. I cannot get it to work. Any help would be appreciated.

Thanks in advance,

Blair Morton
Kriti Garg
Ranch Hand

Joined: Sep 13, 2004
Posts: 50
hi,

dispose or setVisible(false) ur login panel

on action of login button and setVisible(true) of other
panel which is to be shown after login panel
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SWT - Popping up new Window