有两个程序Reboud.java和 ReboundPanel.java编译时出现:D:\java\javac Reboud.java
Reboud.java:11:找不到符号
符号: 类ReboundPanel
位置: 类Timer.Rebound frame.getContentPane().add(new ReboundPanel());
^
1错误还有就是
在ReboundPanel.java中
image = new ImageIcon("happFace.gif");
happFace.gif图片放在哪?
Reboud.java:11:找不到符号
符号: 类ReboundPanel
位置: 类Timer.Rebound frame.getContentPane().add(new ReboundPanel());
^
1错误还有就是
在ReboundPanel.java中
image = new ImageIcon("happFace.gif");
happFace.gif图片放在哪?
happFace.gif 放在编译后的jar同目录
图片放在img里。
代码这样写:image = new ImageIcon("img/happFace.gif");