In Java Jframe open another JFrame but JFrame show nothing -


i java program eclipse window builder, there got 2 class

  1. login.java
  2. 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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -