public ApplyDepositDialog( final Order curOrder ) {
		setTitle("Reservations");
		setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
		setResizable(false);
		setAlwaysOnTop(true);
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		JButton btnSelect = new JButton("SELECT");
		btnSelect.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				Reservation selection = reservations.get( table.getSelectedRow() );
				
				deposit = selection.getDeposit();
				
				curOrder.setDeposit( deposit );
				
				String name = selection.getName();
				int size = selection.getSize();
				Date date = selection.getDate();
				
				try {	
					Statement state = DBConnection.OpenConnection();
					String commandstring = "DELETE FROM Reservations WHERE "
							+ "Name = '"+ name + "' AND DateTime = '" + new Timestamp(date.getTime()) + "' "
							+ "AND Size = "+ size + " AND Deposit = "+ deposit + ";";

					if(state != null){
						state.execute(commandstring);
					}
					else
						System.err.println("Statement was null.  No connection?");

					state.close();

				} catch (SQLException e1) {
					e1.printStackTrace();
				}
				
				setVisible(false);
				dispose();
			}
		});
		btnSelect.setFont(new Font("Lucida Grande", Font.PLAIN, 16));
		JButton btnCancel = new JButton("CANCEL");
		btnCancel.setFont(new Font("Lucida Grande", Font.PLAIN, 16));
		btnCancel.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				dispose();
			}
		});
		
		JScrollPane scrollPane = new JScrollPane();
		GroupLayout gl_contentPanel = new GroupLayout(contentPanel);
		gl_contentPanel.setHorizontalGroup(
			gl_contentPanel.createParallelGroup(Alignment.LEADING)
				.addGroup(Alignment.TRAILING, gl_contentPanel.createSequentialGroup()
					.addComponent(btnCancel, GroupLayout.PREFERRED_SIZE, 99, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.RELATED, 240, Short.MAX_VALUE)
					.addComponent(btnSelect))
				.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 440, Short.MAX_VALUE)
		);
		gl_contentPanel.setVerticalGroup(
			gl_contentPanel.createParallelGroup(Alignment.TRAILING)
				.addGroup(gl_contentPanel.createSequentialGroup()
					.addComponent(scrollPane, GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_contentPanel.createParallelGroup(Alignment.TRAILING, false)
						.addComponent(btnCancel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
						.addComponent(btnSelect, GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)))
		);
		
		table = new JTable();
		
		Model = new DefaultTableModel(ColumnNames, 0);
		//get all reservations and add to table
		try {
			reservations = Reservation.getAllReservations();
			//add rows to table
			for(int i = 0; i < reservations.size(); i++) {
				Reservation curReservation = reservations.elementAt(i);
				Vector<String> Row = new Vector<String>();
				Row.add(curReservation.getName());
				Row.add((new Timestamp(curReservation.getDate().getTime()).toString()));
				Row.add(String.valueOf(curReservation.getSize()));
				Row.add(String.valueOf(curReservation.getDeposit()));
				Model.addRow(Row);
			}
			
			table.setModel(Model);
		} catch (Exception e1) {
			System.out.println("Error: ApplyDepositDialog.java - getAllReservations()");
		}
		
		scrollPane.setViewportView(table);
		contentPanel.setLayout(gl_contentPanel);
	}