How can i hide a frame(jframe) on runtime? (without closing the frame).
Printable View
How can i hide a frame(jframe) on runtime? (without closing the frame).
Try
setVisible
public void setVisible(boolean b)
Shows or hides this component depending on the value of parameter b.
Parameters:
b - If true, shows this component; otherwise, hides this component.
Since:
JDK1.1
See Also:
isVisible()
Use setVisible method.
For Instance :
JFrame jf=new JFrame("Test");
jf.setVisible(true) //Will Show
jf.setVisible(false) //will Hide