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

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

    XMLWordPrintable

    Details

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: