public static String displayInput(String question, String title) {
		while (true) {
			String s = JOptionPane.showInputDialog(null, question, title,
					JOptionPane.PLAIN_MESSAGE);
			if (s == null) {
				System.exit(0);
			}
			if (s.length() > 0) {
				return s;
			}
		}
	}