New to import org.jdesktop.application.SingleFrameApplication
Hello,
I am trying a new way to do my java project, I'm trying to use SingleFrameApplication however i am stuck. I am unable to use .setVisible properties at all with this new way.
Code:
if(username_1.equals(uname) && pass_1.equals(passw) && type1Int == 2){
[b]this.setVisible(false);
userForm main = new userForm();
main.setVisible(true);[/b]
What's the way to hide and show forms using SingleFrameApplication? I haven't used this before and have always used the .setVisible property in the past to hide/show forms. I have a form that has a button with an actionperformed method however I am unable to figure out how to hide the current form and show the new one once the button is clicked.
Any links, info, etc would be great!
Thanks in advance!