Results 1 to 4 of 4

Thread: CheckBox

  1. #1
    boss is offline Member
    Join Date
    Jan 2010
    Posts
    12
    Rep Power
    0

    Default CheckBox

    How do I check the state of a CheckBox ? (selected or deselected)

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    in the java.awt.Checkbox, the method getState() will return true if the checkbox is selected.

  3. #3
    rp181 is offline Member
    Join Date
    Mar 2009
    Posts
    70
    Rep Power
    0

    Default

    for swing, javax.swing.JCheckBox

    boolean JCheckbox.isSelected();

  4. #4
    boss is offline Member
    Join Date
    Jan 2010
    Posts
    12
    Rep Power
    0

Similar Threads

  1. CheckBox in JTable
    By nikosa in forum AWT / Swing
    Replies: 1
    Last Post: 08-05-2009, 06:01 AM
  2. Jtree with checkbox
    By msankar.ravi in forum AWT / Swing
    Replies: 1
    Last Post: 07-10-2009, 12:25 AM
  3. Checkbox to list
    By msixty in forum New To Java
    Replies: 5
    Last Post: 05-07-2009, 09:10 PM
  4. CheckBox Jlist items
    By dropez in forum AWT / Swing
    Replies: 1
    Last Post: 03-26-2009, 08:39 PM
  5. checkbox
    By Alan in forum AWT / Swing
    Replies: 3
    Last Post: 05-18-2007, 11:10 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
  •