In Java Jframe open another JFrame but JFrame show nothing -
i java program eclipse window builder, there got 2 class
- login.java
- menu.java
so when username , password matched , login.java close , menu.java open
in code, try using
if(true) { menu menu = new menu(); menu.setvisible(true); login.dispose(); } else { joptionpane.showmessagedialog(null, "wrong username or password", "message", joptionpane.information_message); }
and run login.java, menu.java show, in mini size , when expand it, menu.java nothing contain.
i watched video tutorial on youtube, teach in way when try not working, hope can , thank lot.
menu menu= new menu(); menu.frame.setvisible(true);
Comments
Post a Comment