like i have this program that involves two frames
the initial design didn't involve logging off but now it does so i have to somehow implement it
its like this
i have class1 and class2
main starts by
class1 c1 = new c1();when c1 is created it has a class2 c2 item inside it
when i click log in i have
c2 = new class2(); c1.setVisible(false) c2.class1=this;so basically i have a class1 pointing at class2 and a class2 pointing at class1 so i can manipulate them from inside the classes
now when i want to log out i call c2.class1.reset(); which contains
public void reset(){
user.setText(null);
pass.setText(null);
class2 = null;
System.gc();
}
but the class2 frame is not deletedanyone know how to remove that frame?
Edited by Alexander, 06 January 2011 - 02:24 PM.
( formatting )


Sign In
Create Account


Back to top










