JDK-8186392 : Release Note: Removal of Support for Using Old LookAndFeel
  • Type: Sub-task
  • Component: client-libs
  • Affected Version: 10
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2017-08-17
  • Updated: 2019-04-09
  • Resolved: 2019-02-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10Resolved
Description
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());`