Results 1 to 3 of 3

Thread: Hiding a Frame. How To?

  1. #1
    Guest

    Question

    How can i hide a frame(jframe) on runtime? (without closing the frame).

  2. #2
    Guest

    Thumbs up You might need this to show it too [if not using show()]

    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()

  3. #3
    Addicted Member KrishnaSantosh's Avatar
    Join Date
    Feb 2001
    Location
    Coimbatore
    Posts
    210
    Use setVisible method.

    For Instance :

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width