HistoryTextField textField = new HistoryTextField(history); textField.setSelectedItem(def); Object[] message = { jEdit.getProperty(name.concat(".message")), textField };  textField.requestDefaultFocus();  int retVal = JOptionPane.showConfirmDialog(frame,message,
String retVal = (String)JOptionPane.showInputDialog(frame, jEdit.getProperty(name.concat(".message")),
	public static String input(JFrame frame, String name, String history,		String def)	{		HistoryTextField textField = new HistoryTextField(history);		textField.setSelectedItem(def);		Object[] message = { jEdit.getProperty(name.concat(".message")),			textField };		textField.requestDefaultFocus();		int retVal = JOptionPane.showConfirmDialog(frame,message,			jEdit.getProperty(name.concat(".title")),			JOptionPane.OK_CANCEL_OPTION);		if(retVal == JOptionPane.OK_OPTION)		{			textField.save();			return (String)textField.getSelectedItem();		}		else			return null;	}