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.
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.