private void actionPanel(JPanel panel) {
		actionsPanel = new JPanel();
		actionsPanel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		actionsPanel.setBounds(520, 279, 320, 103);
		panel.add(actionsPanel);
		actionsPanel.setLayout(null);
		actionsPanel.setVisible(false);

		final JLabel x1Label = new JLabel("X1");
		x1Label.setHorizontalAlignment(SwingConstants.RIGHT);
		x1Label.setBounds(6, 37, 25, 14);
		actionsPanel.add(x1Label);
		x1Label.setRequestFocusEnabled(false);
		x1Label.setForeground(Color.BLACK);
		x1Label.setFont(new Font("Tahoma", Font.BOLD, 12));

		x1Field = new JTextField();
		x1Field.setHorizontalAlignment(SwingConstants.CENTER);
		x1Field.setEditable(false);
		x1Field.setBounds(41, 35, 25, 20);
		actionsPanel.add(x1Field);
		x1Field.setColumns(10);

		y1Field = new JTextField();
		y1Field.setEditable(false);
		y1Field.setHorizontalAlignment(SwingConstants.CENTER);
		y1Field.setBounds(41, 66, 25, 20);
		actionsPanel.add(y1Field);
		y1Field.setColumns(10);

		final JLabel y1Label = new JLabel("Y1");
		y1Label.setHorizontalAlignment(SwingConstants.RIGHT);
		y1Label.setBounds(6, 68, 25, 14);
		actionsPanel.add(y1Label);
		y1Label.setRequestFocusEnabled(false);
		y1Label.setForeground(Color.BLACK);
		y1Label.setFont(new Font("Tahoma", Font.BOLD, 12));

		final JLabel x2Label = new JLabel("X2");
		x2Label.setBounds(76, 37, 16, 14);
		actionsPanel.add(x2Label);
		x2Label.setFont(new Font("Tahoma", Font.BOLD, 12));
		x2Label.setForeground(Color.BLACK);

		x2Field = new JTextField();
		x2Field.setHorizontalAlignment(SwingConstants.CENTER);
		x2Field.setEditable(false);
		x2Field.setBounds(102, 35, 25, 20);
		actionsPanel.add(x2Field);
		x2Field.setColumns(10);

		final JLabel y2Label = new JLabel("Y2");
		y2Label.setBounds(76, 68, 16, 14);
		actionsPanel.add(y2Label);
		y2Label.setFont(new Font("Tahoma", Font.BOLD, 12));
		y2Label.setForeground(Color.BLACK);

		y2Field = new JTextField();
		y2Field.setEditable(false);
		y2Field.setHorizontalAlignment(SwingConstants.CENTER);
		y2Field.setBounds(102, 66, 25, 20);
		actionsPanel.add(y2Field);
		y2Field.setColumns(10);
		
		final JLabel bidLabel = new JLabel("$");
		bidLabel.setHorizontalAlignment(SwingConstants.RIGHT);
		bidLabel.setFont(new Font("Tahoma", Font.BOLD, 12));
		bidLabel.setBounds(76, 53, 16, 14);
		actionsPanel.add(bidLabel);

		bidButton = new JButton("Bid");
		bidButton.setBounds(177, 50, 80, 23);
		actionsPanel.add(bidButton);
		bidButton.setRequestFocusEnabled(false);

		bidField = new IntTextField();
		
		
		bidField.setBounds(99, 51, 68, 20);
		actionsPanel.add(bidField);
		bidField.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null,
				null, null));
		bidField.setBackground(SystemColor.window);
		bidField.setColumns(10);

		seismicCostField = new JTextField();
		seismicCostField.setBounds(137, 35, 120, 20);
		actionsPanel.add(seismicCostField);
		seismicCostField.setEditable(false);
		seismicCostField.setBorder(new BevelBorder(BevelBorder.LOWERED, null, null, null, null));
		seismicCostField.setColumns(10);

		drillButton = new JButton("Drill");
		drillButton.setBounds(102, 32, 80, 55);
		actionsPanel.add(drillButton);

		requestButton = new JButton("Seismic Request");
		requestButton.setBounds(137, 65, 120, 23);
		actionsPanel.add(requestButton);
		
		/*crossButton = new JToggleButton("Slice View");
		crossButton.setBounds(18, 34, 100, 55);
		actionsPanel.add(crossButton);*/
		
		JPanel radioPanel = new JPanel();
		radioPanel.setBounds(1, 5, 304, 26);
		actionsPanel.add(radioPanel);
		radioPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 0));
		
				SLButton = new JRadioButton("Seismic Line");
				radioPanel.add(SLButton);
				SLButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
						//map.colorSeismicKnowledge(null);
						map.repaint(); //calls paintColorsMode();
						map.sMode = 1;

						x2Label.setVisible(true);
						x2Field.setVisible(true);
						y2Label.setVisible(true);
						y2Field.setVisible(true);
						requestButton.setVisible(true);
						seismicCostField.setVisible(true);
						
						requestButton.setVisible(true);
						seismicCostField.setVisible(true);
						//crossButton.setVisible(true);

						x1Label.setVisible(false);
						x1Field.setVisible(false);
						y1Label.setVisible(false);
						y1Field.setVisible(false);
						x2Label.setVisible(false);
						x2Field.setVisible(false);
						y2Label.setVisible(false);
						y2Field.setVisible(false);
						bidButton.setVisible(false);
						bidField.setVisible(false);
						bidLabel.setVisible(false);
						drillButton.setVisible(false);																																					 map.curBGColor =new Color(82, 61, 0);
					}
				});
				//SLButton.setSelected(true);
				SLButton.setActionCommand("S");
				
				buttonGroup.add(SLButton);
				SLButton.setBackground(UIManager.getColor("Button.background"));
				
						JRadioButton bidButton1 = new JRadioButton("Bid");
						radioPanel.add(bidButton1);
						bidButton1.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent arg0) {
								//map.colorBiddableLand(null);
								map.repaint(); //calls paintColorsMode();
								map.curBGColor =new Color(184,138,0);

								bidButton.setVisible(true);
								bidField.setVisible(true);
								bidLabel.setVisible(true);

								x2Label.setVisible(false);
								x2Field.setVisible(false);
								y2Label.setVisible(false);
								y2Field.setVisible(false);
								drillButton.setVisible(false);
								requestButton.setVisible(false);
								seismicCostField.setVisible(false);
								//crossButton.setVisible(false);
							}
						});
						bidButton1.setActionCommand("B");
						buttonGroup.add(bidButton1);
						bidButton1.setBackground(UIManager.getColor("Button.background"));
						
								JRadioButton drillButton1 = new JRadioButton("Drill");
								radioPanel.add(drillButton1);
								drillButton1.addActionListener(new ActionListener() {
									public void actionPerformed(ActionEvent arg0) {
										//map.colorDrillableLand(null);
										map.repaint(); //calls paintColorsMode();
										map.curBGColor =new Color(240,240,240);

										bidButton.setVisible(false);
										bidField.setVisible(false);
										bidLabel.setVisible(false);

										x2Label.setVisible(false);
										x2Field.setVisible(false);
										y2Label.setVisible(false);
										y2Field.setVisible(false);
										drillButton.setVisible(true);
										requestButton.setVisible(false);
										seismicCostField.setVisible(false);
										//crossButton.setVisible(false);
									}
								});
								drillButton1.setActionCommand("D");
								buttonGroup.add(drillButton1);
								drillButton1.setBackground(UIManager.getColor("Button.background"));
		
		requestButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				try {
					int x1Value = Integer.parseInt(x1Field.getText());
					int y1Value = Integer.parseInt(y1Field.getText());
					int x2Value = Integer.parseInt(x2Field.getText());
					int y2Value = Integer.parseInt(y2Field.getText());
					
					if (operator.makeNewSeismicRequest(x1Value, y1Value, x2Value, y2Value)) {

						addMessage("Valid. Seismic Data Request Made.");
						seismicCostField.setText("");
					} else {
						addMessage("Problem with request. Verify valid coordinates and enough funds.");
					}
					x1Field.setText("");
					y1Field.setText("");
					x2Field.setText("");
					y2Field.setText("");
				} catch (NumberFormatException nfe) {
					addMessage("Problem with request. Please select a cell.");
				}
			}
		});
		/*crossButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				try {
					int x1Value = Integer.parseInt(x1Field.getText());
					int y1Value = Integer.parseInt(y1Field.getText());
					int x2Value = Integer.parseInt(x2Field.getText());
					int y2Value = Integer.parseInt(y2Field.getText());
					
					
					if (operator.makeNewSeismicRequest(x1Value, y1Value, x2Value, y2Value)) {

						addMessage("Valid. Seismic Data Request Made.");
						seismicCostField.setText("");
					} else {
						addMessage("Problem with request. Verify valid coordinates and enough funds.");
					}
					x1Field.setText("");
					y1Field.setText("");
					x2Field.setText("");
					y2Field.setText("");
				} catch (NumberFormatException nfe) {
					addMessage("Problem with request. Please select a cell.");
				}
			}
		});*/
		drillButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				try {
					int xValue = Integer.parseInt(x1Field.getText());
					int yValue = Integer.parseInt(y1Field.getText());

					if (operator.makeNewDrill(xValue,yValue)) {
						addMessage("Valid. Drill Request Made.");
					} else {
						addMessage("Problem with drill. Make sure the land is owned and there are enough funds.");
					}
				} catch (NumberFormatException nfe) {
					addMessage("Problem with drill. Please select a cell.");
				}
			}
		});
		bidButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				try {
					int xValue = Integer.parseInt(x1Field.getText());
					int yValue = Integer.parseInt(y1Field.getText());
					int bidValue = Integer.parseInt(bidField.getText());
					
					if (operator.makeNewBid(xValue,yValue,bidValue)) {
						addMessage("Valid. Bid Request Placed.");
						x1Field.setText("");
						y1Field.setText("");
						bidField.setText("");
					} else {
						addMessage("Invalid Bid. Make sure there are enough funds, or that the minimum bid is met.");
					}

				} catch (NumberFormatException nfe) {
					addMessage("Invalid Bid. Please enter an integer amount in the bid field, or select a cell.");
				}
			}
		});
	}