public void propertyChange(PropertyChangeEvent pce)
		{
			String prop = pce.getPropertyName();

			if ((pce.getSource() == optionPane) && (JOptionPane.VALUE_PROPERTY.equals(prop) || JOptionPane.INPUT_VALUE_PROPERTY.equals(prop)))
			{
				Object value = optionPane.getValue();
				if (value == JOptionPane.UNINITIALIZED_VALUE)
					return;

				optionPane.setValue(JOptionPane.UNINITIALIZED_VALUE);
				if (s[0].equals(value))
				{
					ArrayList<String> lines = new ArrayList<String>();
					for (JTextField field : fields)
						lines.add(field.getText());
					map.setInteractLine1(lines);
					lines = new ArrayList<String>();
					for (JTextField field : fields2)
						lines.add(field.getText());
					map.setInteractLine2(lines);
					frame.setSelectedTool(SelectedTool.INTERACTION);
					dispose();
				}
				else
					dispose();
			}
		}