public static Object obj = ImageIconProxy.class.getClassLoader().getResource("img/absent.png");
public static final ImageIcon ABSENT = new ImageIcon(
ImageIconProxy.class.getClassLoader().getResource("img/absent.png"));
static final ImageIcon LOADING = new ImageIcon(
ClassLoader.getSystemResource("image/loading.png"));这几个静态属性初始化有问题,导致你这个类加载失败,所以提示找不到main class,跟swing没关系
public static final ImageIcon ABSENT = new ImageIcon(
ImageIconProxy.class.getClassLoader().getResource("img/absent.png"));
static final ImageIcon LOADING = new ImageIcon(
ClassLoader.getSystemResource("image/loading.png"));这几个静态属性初始化有问题,导致你这个类加载失败,所以提示找不到main class,跟swing没关系
ClassLoader.getSystemResource("image/loading.png")返回值为null
ps:为了运行这个程序,我也创建了image文件夹,以及需要的png图片