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

ImageView should have shorthand creation function

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: fx2.1
    • Component/s: javafx

      Description

      Writing this code all the time:

      var i = ImageView { image: Image { url: "blah" } }

      is both tedious and clutters the code. Would be nicer to have:

      var i = ImageView.image("blah")

      This is similar in style to the Font.font creation functions.

        Attachments

          Activity

            People

            Assignee:
            lnerad Ľubomír Nerád
            Reporter:
            rbair Richard Bair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: