code: public static void main(String args[])
      {
          BaseApplet.main(args);
          AppointmentApplet applet = (AppointmentApplet)AppointmentApplet.getSharedInstance();
          if (applet == null)
              applet = new AppointmentApplet(args);
          new JBaseFrame("Test", applet);
      }
docs: The main() method acts as the applet's entry point when it is run
  as a standalone application. It is ignored if the applet is run from
  within an HTML page.