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

Need TogglePolicy for ToggleButton in ToggleGroup

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.0.1, fx2.0.2, fx2.1
    • javafx
    • Windows 7 64bit, JDK 1.7.0_4 64bit, JavaFX 2.1 64bit

      As described here http://docs.oracle.com/javafx/2/ui_controls/toggle-button.htm ToggleButton and RadioButton do not behave the same way when in ToggleGroup.
      However there are time when we do not want to be able to have a ToggleGroup where there is no unselected ToggleButton (see https://forums.oracle.com/forums/thread.jspa?threadID=2288865 and https://forums.oracle.com/forums/thread.jspa?messageID=10383377)

      Currently we have to rely on hacks such as consuming the MouseEvent.MOUSE_RELEASED event on the button to prevent unselection gesture from being propagated to the button itself.
      It would be good if we could specify a policy on the ToggleGroup or the ToggleButton to prevent this from happening instead.

            Unassigned Unassigned
            fbouyajfx Fabrice Bouyé (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: