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

BorderStroke constructor doesn't respect widths

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: