PDA

Click to See Complete Forum and Search --> : Hiding a Frame. How To?


Dec 12th, 2000, 06:41 AM
How can i hide a frame(jframe) on runtime? (without closing the frame).

Dec 12th, 2000, 09:59 AM
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()

KrishnaSantosh
Feb 8th, 2001, 02:31 AM
Use setVisible method.

For Instance :

JFrame jf=new JFrame("Test");
jf.setVisible(true) //Will Show
jf.setVisible(false) //will Hide