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

Text size is twice bigger under Windows L&F on Win 8.1 with HiDPI display

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • JDK 1.9.0 (build 1.9.0-ea-fastdebug-b52)

      Windows 8.1 with HiDPI display

    • 2d
    • b114
    • windows_8

        Steps to reproduce:

        Run the code:
        -----------------------
        import javax.swing.*;

        public class JMenuTest {

            public static void main(String[] args) {
                SwingUtilities.invokeLater(() -> {
                    try {
                        UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                    } catch (Exception ex) {
                        throw new RuntimeException(ex);
                    }
                    JFrame frame = new JFrame();
                    frame.setSize(200, 200);
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    JMenuBar menuBar = new JMenuBar();
                    menuBar.add(new JMenu("Test 1"));
                    menuBar.add(new JMenu("Test 2"));
                    frame.setJMenuBar(menuBar);
                    frame.setVisible(true);
                });
            }
        }
        -----------------------

        Compare the menu text with the sample which is run with the Metal L&F.
        The text with the Windows L&F is twice bigger than the text with the Metal L&F.

              alexsch Alexandr Scherbatiy
              alexsch Alexandr Scherbatiy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: