private void createLocalData(JPanel pane) {
		labels = new JLabel[5];
		labels[0] = new JLabel("Number of Players:");
		labels[1] = new JLabel("Number of Planets:");
		labels[2] = new JLabel("Size of Map:");
		labels[3] = new JLabel("Width:");
		labels[4] = new JLabel("Height:");
		
		playerPane = new JPanel();
		playerPane.setLayout(new BoxLayout(playerPane, BoxLayout.PAGE_AXIS));
		
		JScrollPane jspane = new JScrollPane(playerPane);
		jspane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
		jspane.setPreferredSize(new Dimension(250, 100));
		
		Integer[] choices = {2, 3, 4, 5, 6, 7, 8, 9, 10};
		playerSelect = new JComboBox<Integer>(choices);
		playerSelect.setSelectedIndex(0);
		playerSelect.addItemListener(new ItemListener() {
			@Override
			public void itemStateChanged(ItemEvent arg0) {
				playerPane.removeAll();
				createPlayerPanel();
				playerPane.revalidate();
				dialog.validate();
				dialog.pack();
			}
		});
		
		createPlayerPanel();
		
		NumberFormatter formatter = new NumberFormatter(NumberFormat.getInstance());
		formatter.setValueClass(Integer.class);
		formatter.setMinimum(0);
		formatter.setMaximum(Integer.MAX_VALUE);
		formatter.setCommitsOnValidEdit(true);
		sizes = new JFormattedTextField[2];
		sizes[0] = new JFormattedTextField(formatter);//GameManager.DEFAULT_ROWS + "", 6);
		sizes[0].setText(GameManager.DEFAULT_ROWS + "");
		sizes[0].setColumns(6);
		sizes[1] = new JFormattedTextField(formatter);//GameManager.DEFAULT_COLS + "", 6);
		sizes[1].setText(GameManager.DEFAULT_COLS + "");
		sizes[1].setColumns(6);
		
		txtPlanets = new JFormattedTextField(formatter);//"0", 3);
		txtPlanets.setText("10");
		txtPlanets.setColumns(3);
	
		JLabel modeLabel = new JLabel("Game Mode:");
		String [] options = GameManager.ModesToStrings();
		gameSelect = new JComboBox<String>(options);
		JPanel modePanel = new JPanel();
		modePanel.add(modeLabel);
		modePanel.add(gameSelect);
		pane.add(modePanel);
		
		JPanel p = new JPanel();
		p.add(labels[0]);
		p.add(playerSelect);
		pane.add(p);
		pane.add(jspane);
		p = new JPanel();
		p.add(labels[1]);
		p.add(txtPlanets);
		pane.add(p);
		labels[2].setAlignmentX(Component.RIGHT_ALIGNMENT);
		pane.add(labels[2]);
		JPanel wPanel = new JPanel();
		wPanel.add(labels[3]);
		wPanel.add(sizes[0]);
		pane.add(wPanel);
		JPanel hPanel = new JPanel();
		hPanel.add(labels[4]);
		hPanel.add(sizes[1]);
		pane.add(hPanel);
		JPanel btnPanel = new JPanel();
		btnPanel.add(buttons[0]);
		btnPanel.add(buttons[1]);
		pane.add(btnPanel);
	}