public MainGUI(JPanel p1)
	{
		//Call to Super to Set Title
		super("FRC 2410 Bluetooth Server");
		
		//Set Background Color
		p1.setBackground(Color.GRAY);
		
		//Create Setup Dialog
		mG  = new MatchSetupGUI(new JPanel(null));
		
		//Create Components
		cC = new JLabel("Connected Clients");
	    TableModel dataModel = new DefaultTableModel(new Object[]{"Bluetooth Name","Bluetooth Address"},6);
	    clientsTable = new JTable(dataModel);
	    clientsTable.setEnabled(false);
	    JScrollPane scrollPane = new JScrollPane(clientsTable);
		setupTeams = new JButton("Setup Match");
		mN = new JLabel("Match Number");
		mNumber = new JTextField();
		mNumber.setEnabled(false);
		teamsL = new JLabel("Teams");
	    TableModel dataModelR = new DefaultTableModel(new Object[]{"Red Teams"},3);
	    redTeamsTable = new JTable(dataModelR);
	    redTeamsTable.setEnabled(false);
	    scrollPaneR = new JScrollPane(redTeamsTable);
	    TableModel dataModelB = new DefaultTableModel(new Object[]{"Blue Teams"},3);
	    blueTeamsTable = new JTable(dataModelB);
	    blueTeamsTable.setEnabled(false);
	    scrollPaneB = new JScrollPane(blueTeamsTable);
	    startScouting = new JButton("Begin Scouting");
	    
	    //Add Components to Panel
	    p1.add(cC);
	    p1.add(scrollPane);
	    p1.add(setupTeams);
	    p1.add(mN);
	    p1.add(mNumber);
	    p1.add(teamsL);
	    p1.add(scrollPaneR);
	    p1.add(scrollPaneB);
	    p1.add(startScouting);
	    
	    //Setup Insets and Positioning
	    Insets insets = p1.getInsets();
	    Dimension size = cC.getPreferredSize();
	    cC.setBounds(10 + insets.left, 10 + insets.top, size.width, size.height);
	    
	    scrollPane.setBounds(10 + insets.left, 30 + insets.top, 600, 119);
	    
	    setupTeams.setBounds(10 + insets.left, 160 + insets.top, 600, 50);
	    
	    size = mN.getPreferredSize();
	    mN.setBounds(10 + insets.left, 230 + insets.top, size.width, size.height);
	    
	    mNumber.setBounds(10 + insets.left, 250 + insets.top, size.width, size.height);
	    
	    size = teamsL.getPreferredSize();
	    teamsL.setBounds(10 + insets.left, 280 + insets.top, size.width, size.height);
	    
	    size = teamsL.getPreferredSize();
	    teamsL.setBounds(10 + insets.left, 280 + insets.top, size.width, size.height);
	    
	    scrollPaneR.setBounds(10 + insets.left, 300 + insets.top, 250, 71);
	    
	    scrollPaneB.setBounds(350 + insets.left, 300 + insets.top, 250, 71);
	    
	    startScouting.setBounds(10 + insets.left, 390 + insets.top, 600, 50);
	    
	    //Create Listeners for Buttons
	    setupTeams.addActionListener(this);
	    startScouting.addActionListener(this);
	    
	    //Add Window Listener
	    addWindowListener(this);
	    
		//Make GUI Visible and Such
		add(p1);
		setSize(630,490);
	}