Jump to content
xisto Community

Hank Ag99

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. I am having a similar problem. have you found a solution? I have a main() in the Operation.class used when I run as an Application. I also have an AppletGame.class that has an init() that is used when I run as an Applet. Within Eclipse the both work. But After exporting to a jar, It only works as an Application. Does this look like something you've done before?Thanks a bunch.Hankpublic class Operation { public static void main(String[] args) { Operation operator = new Operation(); operator.global.notApplet(); operator.run(); JFrame frame = new JFrame(); ... } public void run() { String playerName = null; int RC = 0; ... }}public class AppletGame extends JApplet {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()); }...}
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.