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

BorderStroke constructor doesn't respect widths

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 8u20
    • javafx

      I would expect this code to create a border with a bottom red line. It doesn't. It doesn't create a border at all.
      I don't know if it is a bug in the Border code or if I'm supposed to use the API in a difference way.

      new Border(new BorderStroke(Color.RED, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, new BorderWidths(0, 0, 1, 0)))

      The API and JavaDoc needs to be improved.

      The API needs to at least make it trivial to create something like the Swing MatteBorder.

            msladecek Martin Sládeček
            mgrev Mikael Grev
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: