Clearing JFrame Components to add new components like JButton

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pankajs
    New Member
    • Mar 2008
    • 36

    Clearing JFrame Components to add new components like JButton

    Hello ! Freinds I m a new member & I have to prepare a project on a game in java
    I want to know that how to remove my JFrame Components.???? ???
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by pankajs
    Hello ! Freinds I m a new member & I have to prepare a project on a game in java
    I want to know that how to remove my JFrame Components.???? ???
    Have a look at the JFrame.getConte ntPane() method. It returns a Container
    that contains all the components/containers at the top level of the JFrame.

    kind regards,

    Jos

    Comment

    Working...