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

    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
    Rep Power


    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, 05:01 AM
  3. How to use Radio Buttons
    By Java Tip in forum SWT Tips
    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, 09: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