PDA

View Full Version : Programming Question in Java


MikeVic
05-31-2004, 05:04 PM
Hopefully someone can answer this question of mine:

Does anyone know how to call another Frame in a different class when dealing with GUIs? For example, I have two classes named "Welcome.java" and "Login.java." When someone clicks the OK button on the Welcome.java screen, I want to get rid of (or hide) the Welcome.java screen, and show (load?) the Login.java screen.

I'm using the SWT (Standard Widgets Toolkit), and when I put:

Login logWin = new Login();
logWin.open();

I get an error of: "Invalid thread access" and a bunch of other stuff after that.

Does anyone have experience with this?

Thanks.

Surtt
06-01-2004, 12:14 PM
Try...

Login logWin = new Login();
logWin.setVisible(true);
this.dispose();

Front Office Football Central Database Error
Database Error Database error
The Front Office Football Central database has encountered a problem.

Please try the following:
The forumsold.operationsports.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.