L
lyx
Unregistered / Unconfirmed
GUEST, unregistred user!
小弟近日学习java,有问题向各位大侠请教。
import Java.awt.*;
import Javax.swing.ImageIcon;
public class ch81
{
public static void main(String args[])
{
ImageIcon icon = new ImageIcon("Icon.jpg");
Frame f = new Frame(" My First Window Application...");
f.setBounds(0, 0, 250, 100);
f.setIconImage(icon.getImage());
f.show();
}
}
classpath=.;c:/j2sdk/lib/tools.jar;c:/j2sdk/lib/dt.jar;
但是出现了错误:
package Java.awtdo
es not exist
import Java.awt.*;
^
package Javax.swingdo
es not exist
import Javax.swing.ImageIcon;
^
................
小弟我将classpath设置了n遍,就是不行,恳请哪位大侠不吝赐教。
import Java.awt.*;
import Javax.swing.ImageIcon;
public class ch81
{
public static void main(String args[])
{
ImageIcon icon = new ImageIcon("Icon.jpg");
Frame f = new Frame(" My First Window Application...");
f.setBounds(0, 0, 250, 100);
f.setIconImage(icon.getImage());
f.show();
}
}
classpath=.;c:/j2sdk/lib/tools.jar;c:/j2sdk/lib/dt.jar;
但是出现了错误:
package Java.awtdo
es not exist
import Java.awt.*;
^
package Javax.swingdo
es not exist
import Javax.swing.ImageIcon;
^
................
小弟我将classpath设置了n遍,就是不行,恳请哪位大侠不吝赐教。