All pastes #259289 Raw Edit

Stuff

public text v1 · immutable
#259289 ·published 2006-11-27 09:39 UTC
rendered paste body
import java.awt.*;
import snake.smain;

public class Test {
  public static void main(String[] args) {
    smain myApplet = new smain(); // define applet of interest
    Frame myFrame = new Frame("Applet Holder"); // create frame with title

    // Call applet's init method (since Java App does not
    // call it as a browser automatically does)
    myApplet.init();

    // add applet to the frame
    myFrame.add(myApplet, BorderLayout.CENTER);
    myFrame.pack(); // set window to appropriate size (for its elements)
    myFrame.setVisible(true); // usual step to make frame visible
    myApplet.run();

  } // end main
} // end class