public GridSizeDialog() {
		myPanel.add(new JLabel("Width:"));
		wField.setText("10");
		myPanel.add(wField);
		myPanel.add(Box.createHorizontalStrut(15));
		myPanel.add(new JLabel("Height:"));
		chooseFile.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent e) {
				JFileChooser chooser = new JFileChooser();
				FileNameExtensionFilter filter = new FileNameExtensionFilter("text files", "txt");
				chooser.setFileFilter(filter);
				int returnVal = chooser.showOpenDialog(null);
				if (returnVal == JFileChooser.APPROVE_OPTION) {
					System.out.println("You chose to open this file: " + chooser.getSelectedFile().getName());
					File file = chooser.getSelectedFile();
					try {
						inputStream = new FileInputStream(file);
					} catch (FileNotFoundException e1) {
						e1.printStackTrace();
					}

				}
			}
		});
		hField.setText("10");
		myPanel.add(hField);
		myPanel.add(chooseFile);
		myPanel.add(gameTypeSelect);
	}