Answer the question
In order to leave comments, you need to log in
Why is there an error message when importing sun.swing in Java12?
I set import sun.swing.MenuItemLayoutHelper; the message package sun.swing is not visible
(package sun.swing is declared in module java.desktop, which does not export it to the unnamed module) appears. The java.desctop module has the sun.swing package. Help me understand what's going on.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question