|
Problem Exporting a Jar as an Applet
I am having an issue Exporting a Jar to be used as an Applet. I can "Run As Applet" within the IDE, but when I use the Export tool, It does not see the the Applet.class (which contains the init() method I need to run)
Can anyone shed some light?
Thanks
the Applet Class below:
package gameManager;
import javax.swing.JApplet;
public class GameApplet extends JApplet {
private static final long serialVersionUID = 1L;
/**
* This is the default constructor
*/
public GameApplet() {
super();
}
/**
* This method initializes this
* @return void
*/
public void init() {
Operation operator = new Operation();
operator.run();
System.out.println("GameApplet");
this.setSize(750, 660);
this.setVisible(true);
this.setEnabled(true);
//JPanel panel = new JPanel();
//panel.add(new Label("Hello World"));
this.add(operator.getJPanel());
}
}
|