JDK-8072676 : [macosx] Jtree icon painted over label when scrollbars present in window
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u25,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-02-06
  • Updated: 2015-10-20
  • Resolved: 2015-02-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u45Fixed 9 b54Fixed
Description
With the following code,

JFrame frame = new JFrame("frame");
frame.add(BorderLayout.CENTER, new JScrollPane(new JTree()));
frame.add(BorderLayout.SOUTH, new JLabel("label"));
frame.setSize(200, 100);
frame.setLocationRelativeTo(null);
frame.setVisible(true);

Reducing the size of the window until a scrollbar is shown, you can see a
tree icon is painted over a label.
Comments
Review: http://cr.openjdk.java.net/~anashaty/8072676/9/webrev.01
16-02-2015

Is this really 2D ? Sounds more like Swing.
06-02-2015