-
Sub-task
-
Resolution: Delivered
-
P4
-
10
-
Verified
It is no longer possible for applications to use old or unsupported LookAndFeels. Some applications (such as, Nimbus and Aqua) used old class names to instantiate JDK internal Swing LookAndFeels. For example:
* `javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");`
* `javax.swing.UIManager.setLookAndFeel("apple.laf.AquaLookAndFeel");`
These classes were internal to the JDK and applications should have always treated them as such. Applications that use these class names to instantiate JDK internal Swing LookAndFeels must migrate now to the following APIs:
* For Nimbus use:
`UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");`
* For Aqua use:
`UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());`
* `javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");`
* `javax.swing.UIManager.setLookAndFeel("apple.laf.AquaLookAndFeel");`
These classes were internal to the JDK and applications should have always treated them as such. Applications that use these class names to instantiate JDK internal Swing LookAndFeels must migrate now to the following APIs:
* For Nimbus use:
`UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");`
* For Aqua use:
`UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());`