Is there a replacement for WindowsLookAndFeel.java in jdk9

In modulation JDK 9, L & Fs classes are not exported. In my project, we extend this class: com.sun.java.swing.plaf.windows.WindowsLookAndFeel

Curious to know if there is any replacement for this class?

+5
source share
1 answer

Use UIManager.getSystemLookAndFeelClassName() .

Also, never use (or rely on) the undocumented class in the com.sun package com.sun , which leads to just such a situation where Oracle decides to move or delete them without warning.

+6
source

Source: https://habr.com/ru/post/1260882/


All Articles