public void load(String appletName) {
		this.appletName = appletName;
		try {
			frame = new Frame();
			Class c = Class.forName(appletName);
			// System.out.println("found class \"" + c.getName() + "\"");
			applet = (Applet) c.newInstance();
			// System.out.println("created applet instance");
			
			try {
				applet.init();
				applet.start();
			} catch (Exception e){
				e.printStackTrace();
			}
			// System.out.println("started applet");

			//Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();

			//frame.setUndecorated(false);

			frame.setLayout(new BorderLayout());
			frame.add(applet, BorderLayout.CENTER);
			//frame.addKeyListener(this);
			frame.pack();

			frame.show();
			applet.requestFocus(); // get keydowns right away

			/*
			frame.addWindowListener(new WindowAdapter() {
				public void windowClosing(WindowEvent e) {
					// disable window closing -- have to delete the max object
				}
			});
			*/
			
			//gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
		} catch (Exception e) {
			System.out.println("jk.p5: couldn't find p5 sketch '" + appletName + "'");
			//e.printStackTrace();
		}
	}