public static void main(String[] args)
  {
    int width = 800,
        height = 600;

    boolean randomizePlane = false,
            randomStart = false;

    try
    {
      if (args.length > 1)
      {
        width = Integer.parseInt(args[0]);
        height = Integer.parseInt(args[1]);
      }

      if (args.length > 3)
      {
        randomizePlane = Integer.parseInt(args[2]) > 0 ? true : false;
        randomStart = Integer.parseInt(args[3]) > 0 ? true : false;
      }
    }
    catch (NumberFormatException e)
    {
      System.out.println(e.getMessage());
      e.printStackTrace();
    }

    LangtonGUI gui = new LangtonGUI(width, height, randomizePlane, randomStart);
    gui.setVisible(true);
  }