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

Both Button and ButtonBase controls should have another constructor.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • 8
    • fx2.0
    • javafx
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: