求助大神帮忙解答:
错误出现在这一行:
g.drawImage(new?ImageIcon(getClass().getResource("image\"+"棋盘.jpg")).getImage(),?90,?60,?625,?700,?this);
控制台显示:
Exception?in?thread?"AWT-EventQueue-0"?java.lang.NullPointerException
at?java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:217)
at?DrawUI.paint(DrawUI.java:31)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…