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

Both Button and ButtonBase controls should have another constructor.

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: fx2.0
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      All OSes

      Description

      In my opinion, both Button and ButtonBase controls should have this constructor:

      Button(Node graphic)
      ButtonBase(Node graphic)

      Although the graphic can be set via the method setGraphic(Node value). However, for new people programming in the javaFX language this detail maybe overlooked, or not evident at first perusal. Because at present you have the following constructor:

      Button(java.lang.String text, Node graphic)
      ButtonBase(java.lang.String text, Node graphic)

        Attachments

          Activity

            People

            • Assignee:
              rbair Richard Bair
              Reporter:
              mselleniejfx Mark Sellenies (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: