Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4190102

ButtonGroup deselection problem?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6, 1.2.0
    • client-libs
    • generic, x86
    • generic, windows_nt



      Name: clC74495 Date: 11/16/98


      With the setSelected() method of ButtonGroup, I can pass a ButtonModel
      not in the ButtonGroup to the method.
       This results in nothing selected
      for the group.
        I can also pass null as the model, which results in the same
      thing.

      According to the javadoc documentation:
      "Once any button is selected, one button is always selected in the group.
      There is no way to turn a button programmatically to "off", in order to
      clear the button group. "
       This behavior seems in error.

      Can one legitimately pass a model not in the group (or null) to clear the
      selection?
      (Review ID: 42768)
      ======================================================================

            shickeysunw Shannon Hickey (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: