Results 1 to 4 of 4

Thread: Check Boxes Not Allowing Multiple Choices

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2008
    Posts
    54

    Check Boxes Not Allowing Multiple Choices

    I am trying to figure out why my following code snippet would not allow me to check multiple check boxes. Any assistance will be appreciated. Thanks in advance.

    Code:
    JCheckBox I1 = new JCheckBox ("Item 1");
    JCheckBox I2 = new JCheckBox("Item 2");
    JCheckBox I3 = new JCheckBox("Item 3");

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Check Boxes Not Allowing Multiple Choices

    What do you mean "check multiple checkboxes"??
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2008
    Posts
    54

    Re: Check Boxes Not Allowing Multiple Choices

    Quote Originally Posted by ComputerJy
    What do you mean "check multiple checkboxes"??
    Thanks for your reply.

    I want to beable to select more than one check box. However, my code is acting like a radio button.

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Check Boxes Not Allowing Multiple Choices

    Then you're doing something else incorrectly because this code should be working fine
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

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