I have 2 classes,one of them extends from JPanel and another one extends from JFrame now I add class which extends from JPanel,to other class and I wanna to setVisible of JFrame false from JPanel class,how should I do it?
public class test extends JPanel{ ... } public class test2 extends JFrame{ test t; public test2(){ t = new test(); } }
I wanna to invisble test2 from test,how should I do it???