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

Do not create LaF instance in javax/swing/plaf/windows/6921687/bug6921687.java

XMLWordPrintable

        Instead of
                lafClass = Class.forName(UIManager.getSystemLookAndFeelClassName());
                UIManager.setLookAndFeel((LookAndFeel) lafClass.newInstance());
        there should be
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        otherwise a special access may be required, and for that, an overly restricting knowledge about the possible values of the system LaF.

              ralexander Renjith Alexander (Inactive)
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: