private void createPanel()
		{
			panel = new JPanel(new BorderLayout());
			linePanel = new JPanel();
			panel.add(linePanel, BorderLayout.NORTH);
			JPanel mainPanel = new JPanel(new FlowLayout());
			Object[] options = { s[0], s[1] };

			createLines();

			intLines = new JTextFieldLimit(2, 3, false);
			mainPanel.add(intLines);
			button = new JButton("create lines");
			button.addActionListener(new ActionListener()
			{
				@Override
				public void actionPerformed(ActionEvent arg0)
				{
					String str = intLines.getText();
					try
					{
						numberOfEnters = Integer.parseInt(str);
						createLines();
					}
					catch (Exception e)
					{
						JOptionPane.showMessageDialog((JButton) arg0.getSource(), "Is not an elligible number", "Error", JOptionPane.ERROR_MESSAGE);
					}
				}
			});
			mainPanel.add(button);

			panel.add(mainPanel, BorderLayout.CENTER);
			optionPane = new JOptionPane(panel, JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION, null, options, options[0]);

			optionPane.addPropertyChangeListener(this);

			setContentPane(optionPane);
			pack();
		}