我的包中已经有系统库,并尝试重置元数据。我还能做什么?
错误的注释说明了它们是什么错误。
package JFrameTest;
import java.awt.Dimension; //The package java.awt is not accessible
import javax.swing.JFrame; //The type javax.swing.JFrame is not accessible
public class Empty extends JFrame { //JFrame cannot be resolved to a type
public static void main (String[] args) {
new Main().setVisible(true); // Main cannot be resolved to a type
}
最佳答案
关于java - 无法导入 JFrame 或 Dimension,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59827974/