The java.awt.peer and java.awt.dnd.peer packages are not accessible

The java.awt.peer and java.awt.dnd.peer APIs are not accessible in Java SE 11. All methods that refer to types defined in these packages have been removed. Code that calls a method that previously accepted or returned a type defined in these packages no longer compiles or runs in Java 11.

For more information, see the java.awt.peer Not Accessible documentation.