String submitTo = getDocumentBase() + "&";
String submitTo = getParameter("submit") + "&";
		public void actionPerformed(ActionEvent e) 		{			String submitTo = getDocumentBase() + "&";			if (((Button)e.getSource()).getLabel() == "OK")			{				submitTo += "action=doit";			}			else // cancel			{				submitTo += "action=cancel";			}			//-- append crop params, etc. (need back to scale first) ---			submitTo += "&crop_x=" + (int)((float)cropRect.x * imageScale);			submitTo += "&crop_y=" + (int)((float)cropRect.y * imageScale);			submitTo += "&crop_w=" + (int)((float)cropRect.width * imageScale);			submitTo += "&crop_h=" + (int)((float)cropRect.height * imageScale);			System.out.println("Submit [" + submitTo + "]");			//-- do it ---			try {				getAppletContext().showDocument(new URL(submitTo));						} catch (Exception e2) {				System.out.println("Bad submit url [" + submitTo + "]");			}		}