Results 1 to 2 of 2
  1. #1
    Adrien is offline Member
    Join Date
    Feb 2010
    Posts
    12
    Rep Power
    0

    Question Select one of X radio buttons

    I am wondering if there are samples out there that will say if radio button 1 is selected "grey out" or don't allow selection to 2,3,4 and so on...

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,234
    Rep Power
    7

    Default

    Add an ItemListener to the button. When its selected disable the other buttons.

    Read the section from the Swing tutorial on "How to Write an Item Listener" for more information.

Similar Threads

  1. Java Radio Buttons
    By dbashby in forum New To Java
    Replies: 4
    Last Post: 09-21-2009, 12:07 AM
  2. Deselect Radio Buttons
    By linux1man in forum AWT / Swing
    Replies: 7
    Last Post: 03-21-2009, 04:01 AM
  3. How to use Radio Buttons
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-25-2008, 02:26 PM
  4. radio buttons and paint
    By gtraylo in forum Java Applets
    Replies: 1
    Last Post: 04-19-2008, 12:43 PM
  5. property for radio buttons
    By swapnanair in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 12-03-2007, 08:39 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
  •