package src.gui;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.EventQueue;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import src.Main;

public class Menu extends JFrame implements ActionListener
{
	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JButton btnAddSinglePoster, btnAddMultiplePosters;
	// true for multiple, false for single
	private boolean multiple;
	private double height, width;

	public static void main(String[] args)
	{
		EventQueue.invokeLater(
			new Runnable()
			{
				public void run()
				{
					try
					{
						Menu frame = new Menu();
						frame.setVisible(true);
					}
					catch (Exception e)
					{
						e.printStackTrace();
					}
				}
			}
		);
	}

	public Menu()
	{
		height = 0;
		width = 0;
		multiple = false;
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(425, 250, 448, 310);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);

		JLabel lblHowBigIs = new JLabel("How big is the rectangle?");
		lblHowBigIs.setBounds(150, 0, 304, 33);
		contentPane.add(lblHowBigIs);

		// tall
		textField = new JTextField();
		textField.setBounds(125, 47, 145, 39);
		contentPane.add(textField);
		textField.setColumns(10);

		// wide
		textField_1 = new JTextField();
		textField_1.setBounds(125, 116, 145, 39);
		contentPane.add(textField_1);
		textField_1.setColumns(10);

		JLabel lblMTall = new JLabel("m tall");
		lblMTall.setBounds(300, 50, 115, 33);
		contentPane.add(lblMTall);

		JLabel lblMWide = new JLabel("m wide");
		lblMWide.setBounds(300, 119, 115, 33);
		contentPane.add(lblMWide);

		btnAddSinglePoster = new JButton("Add Poster");
		btnAddSinglePoster.addActionListener(this);
		btnAddSinglePoster.setBounds(135, 188, 190, 41);
		contentPane.add(btnAddSinglePoster);

	}

	@Override
	public void actionPerformed(ActionEvent e)
	{
		height = Double.parseDouble(textField.getText());
		width = Double.parseDouble(textField_1.getText());
		Main.updateMenuVars(height, width, multiple);
		this.dispose();
	}
}

@@ -657,298 +657,8 @@
 h;%0A%0A
-%09public static void main(String%5B%5D args)%0A%09%7B%0A%09%09EventQueue.invokeLater(%0A%09%09%09new Runnable()%0A%09%09%09%7B%0A%09%09%09%09public void run()%0A%09%09%09%09%7B%0A%09%09%09%09%09try%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09Menu frame = new Menu();%0A%09%09%09%09%09%09frame.setVisible(true);%0A%09%09%09%09%09%7D%0A%09%09%09%09%09catch (Exception e)%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09);%0A%09%7D%0A%0A
 %09pub

remove useless Menu.main