try { assetNameField.setText(openURL.substring(openURL.lastIndexOf('/')+1, openURL.lastIndexOf("."))); } catch (Exception e) {}
	public void init() {		try {			submitButton.addActionListener(new ServerSubmitter(this));		} catch (Exception e) {			JOptionPane.showMessageDialog(ImageJ.this, "Problem adding action listener for submit button", "Error", JOptionPane.WARNING_MESSAGE);		}		try {			assetNameField.addFocusListener(new FocusListener() {				public void focusGained(FocusEvent ev) {					updateFileTypes();				}				public void focusLost(FocusEvent ev) {}			});		} catch (Exception e) {			JOptionPane.showMessageDialog(ImageJ.this, "Problem adding focus listener for name field", "Error", JOptionPane.WARNING_MESSAGE);		}				String openURL = null;		if ((openURL = getParameter("OPEN_URL")) != null) {			setImagePlus(new ImagePlus(openURL));			if (openURL.toLowerCase().endsWith(".gif")) {				fileTypeField.setSelectedItem(".gif");			} else {				fileTypeField.setSelectedItem(".jpg");			}			try {				assetNameField.setText(openURL.substring(openURL.lastIndexOf('/')+1, openURL.lastIndexOf(".")));			} catch (Exception e) {}		}	}