Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any replacement for WindowsLookAndFeel.java in jdk9

Tags:

java

java-9

swing

In JDK 9 with modularization the L&Fs classes are not exported. In my project we are extending this class: com.sun.java.swing.plaf.windows.WindowsLookAndFeel

Curious to know whether Is there any replacement available for this class?

like image 226
DKumar Avatar asked Dec 06 '16 14:12

DKumar


1 Answers

Use UIManager.getSystemLookAndFeelClassName().

Also, never use (or rely on) the undocumented class in the com.sun hierarchy of packages, which leads to exactly this type of situation when Oracle decides to move or remove them without warning.

like image 190
Andrew Thompson Avatar answered Oct 14 '22 07:10

Andrew Thompson