code: public static void main(String[] args)
      {
          JFrame frame;
          App biorhythm = new App();
          try {
              frame = new JFrame("Biorhythm");
              frame.addWindowListener(new AppCloser(frame, biorhythm));
          } catch (java.lang.Throwable ivjExc) {
              frame = null;
              System.out.println(ivjExc.getMessage());
              ivjExc.printStackTrace();
          }
          frame.getContentPane().add(BorderLayout.CENTER, biorhythm);
          Dimension size = biorhythm.getSize();
          if ((size == null) || ((size.getHeight() < 100) | (size.getWidth() < 100)))
              size = new Dimension(640, 400);
          frame.setSize(size);
  
          biorhythm.init();       // Simulate the applet calls
          frame.setTitle("Sample java application");
          biorhythm.start();
  
          frame.setVisible(true);
      }
docs: main entrypoint - starts the applet when it is run as an application
  @param args java.lang.String[]