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

[macosx] JTree icon is not rendered in high resolution on Retina

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7, 8
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b12
    • OS:
      os_x

      Backports

        Description

        See the http://mail.openjdk.java.net/pipermail/macosx-port-dev/2014-March/006516.html

        Unfortunately, at least one icon was (partially) missed - the expand tree control (that little triangle).

        It is rendered in HiDPI, when you click on it, but in its regular appearance it is low res.

        The problem occurs on OS X 10.9.2 with

        java version "1.8.0_20-ea"
        Java(TM) SE Runtime Environment (build 1.8.0_20-ea-b05)
        Java HotSpot(TM) 64-Bit Server VM (build 25.20-b05, mixed mode)


        Cheers,

        -hendrik


        Source code to illustrate the issue - a plain vanilla JTree. Just play with the expansion triangles.
        ------------------
        import javax.swing.*;
        import java.awt.*;

        public class TreeExpanders {

            public static void main(String[] args) {
                final JFrame frame = new JFrame();
                final JTree tree = new JTree();
                frame.getContentPane().setLayout(new BorderLayout());
                frame.getContentPane().add(tree, BorderLayout.CENTER);
                SwingUtilities.invokeLater(new Runnable() {
                    @Override
                    public void run() {
                        frame.setBounds(200, 200, 200, 200);
                        frame.setVisible(true);
                    }
                });
            }
        }
        ------------------

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                alexsch Alexandr Scherbatiy
                Reporter:
                alexsch Alexandr Scherbatiy
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: