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

JFXPanel: Swing border overlaps panel content

    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

          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: