Results 1 to 3 of 3
  1. #1
    man4ish is offline Member
    Join Date
    Dec 2009
    Posts
    14
    Rep Power
    0

    Default How to clear checkboc item in swing

    Hi,

    I am updating the checkbox items in one funciton. For that i need to remove the old one and add the new items but how old items can be removed?
    Thanks in advance.

  2. #2
    devunion is offline Member
    Join Date
    Jun 2008
    Posts
    56
    Rep Power
    0

    Default

    Do you mean JComboBox component?
    Try Controls4J - Advanced Swing Components.

  3. #3
    zweibieren is offline Senior Member
    Join Date
    Aug 2009
    Location
    Pittsburgh, PA
    Posts
    285
    Rep Power
    11

    Default

    Container.remove()

    Call it from the same class that called Container.add()
    (Usually add() is called on some object of a sub...subclass of Container;
    call remove() the same way.)

Similar Threads

  1. How to Clear the Cell?
    By javasaravanan in forum Advanced Java
    Replies: 1
    Last Post: 12-01-2009, 02:14 PM
  2. How to clear JDesktopPane
    By hendrix79 in forum New To Java
    Replies: 12
    Last Post: 12-10-2008, 11:25 PM
  3. Please clear my doubt...............
    By vinaytvijayan in forum Advanced Java
    Replies: 0
    Last Post: 12-26-2007, 06:23 PM
  4. Help, someone clear up Interfaces for me
    By mathias in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 02:26 AM
  5. I want to do is clear the console
    By paul in forum Advanced Java
    Replies: 7
    Last Post: 08-03-2007, 06:54 PM

Posting Permissions

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