顶
勤奋造就未来
我按你的方法做了,怎么显示出来是 failed to load Main-Class mainfest attribute from D:\HelloApplet\HelloApplet.jar 错误呀?
能在详细说说吗?
这是我准备导出的文件:
import java.applet.Applet;
import java.awt.Font;
public class HelloApplet extends Applet {
java.awt.Label label = new java.awt.Label ();
private static final long serialVersionUID = 1L;
/**
* This is the default constructor
*/
public HelloApplet() {
super();
}
/**
* This method initializes this
*
* @return void
*/
public void init() {
try {
jbInit();
}catch(Exception e){
e.printStackTrace(); }
}
private void jbInit () throws Exception{
label.setFont(new Font("Dialog",Font.BOLD,25));
label.setText("欢迎学习JAVAAPPLET");
this.add(label);
}
}