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

Add convenience factory methods for Border and Background

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • jfx17
    • jfx18
    • javafx
    • None

    Description

      It's lengthy to create simple borders and backgrounds:

      new Border(new BorderStroke(Color. BLACK, BorderStrokeStyle.SOLID, null, null));
      new Background(new BackgroundFill(Color.BLACK, null, null));

      Adding convenience factory methods can make this easier:

      Border.of(Paint stroke), or Border.stroke(Paint stroke)
      Background.of((Paint fill), or Background.fill(Paint fill)

      Attachments

        Issue Links

          Activity

            People

              nlisker Nir Lisker
              nlisker Nir Lisker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: