Help with Multiple JFrame visiable
I have difficulties in selecting or making one GUI JFrame visiable and the others invisiable when user login.
the class are
now if a user login using the login.java JFrame form to login, which should take the user to one of the java class JFrame e.g employee.java which should be visiable and the others should be invisiable.
String user = JTextField1.getText();
String pass = jPasswordField1.getPassword();
String selectCmbo = (String)jComboBox1.getSelectedItem();
if(rs.getString("Username").equals(user) && rs.getString("Password").equals(pass)&& rs.getString("designation").equals(selectCmbo))
employee objeEmp = new employee();
inventory objInven = new inventory();
sale objSale = new sale();
each time the user login, all these JFrame are visiable. please assist me to make one Jframe visiable when user login and not all at same time.
hope to get good assistance in this question