Results 1 to 4 of 4
  1. #1
    SaYuNaRa is offline Member
    Join Date
    Apr 2008
    Posts
    6
    Rep Power
    0

    Question how to remove all component in container(Jpanel)

    i want use the same container to add a new compenent how do i remove the components??

    and how to remove paint in the container?

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Set them into Disabled....

    Make some new objects for the new component....

    Or you can use, dispose() method and regenerate your GUI....

    sukatoa.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by sukatoa View Post
    Or you can use, dispose() method and regenerate your GUI....

    This could be the best option. Making new objects wont be a best.

  4. #4
    SaYuNaRa is offline Member
    Join Date
    Apr 2008
    Posts
    6
    Rep Power
    0

Similar Threads

  1. Replies: 0
    Last Post: 03-31-2008, 11:21 AM
  2. Container Managed Persistence
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-27-2007, 11:16 AM
  3. Butterfly Container 1.9.9-beta
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-17-2007, 03:02 PM
  4. Replies: 0
    Last Post: 09-28-2007, 01:52 PM
  5. how to remove an old version of JDK
    By tommy in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 09:59 AM

Posting Permissions

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