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

JFXPanel: Swing border overlaps panel content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      This code...

      jfxpanel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 4));

      ...shows a black border on the jfxpanel but the border overlaps the panel content. The content should shrink instead.
      Workaround: wrap jfxpanel into a JPanel with that border.

        Attachments

        1. IMG_23102012_151823.png
          2 kB
          Werner Lehmann
        2. RT25772.java
          1 kB
          Anton Tarasov

          Activity

            People

            Assignee:
            ant Anton Tarasov
            Reporter:
            wlehmann Werner Lehmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: