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.
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.