import java.swing.JFrame; public class FrameDemo{ private static void creatGUI(){ JFrame jf=new JFrame(“myjframe”); } }
上面的的JFrame显示the type Java.swing.JFrame is not accessible,里面的也在报错,这是为什么
你把 eclipse 工程下的 module-info.java 删了再试试