public void buildSelectionPanel(int selected)
	{
		availableServices.removeAllItems();
		
		Border centerBorder = BorderFactory.createTitledBorder("Select a Service:");
		SelectionPanel.setBorder(centerBorder);
		try 
		{
			PreparedStatement IDLookup = conn.prepareStatement("SELECT idService FROM service_data");
			ResultSet IDs = IDLookup.executeQuery();
			while(IDs.next())
			{
				PreparedStatement descriptionLookup = conn.prepareStatement("SELECT ServiceDescription FROM service_data WHERE idService = ?");
				descriptionLookup.setInt(1, IDs.getInt(1));
				ResultSet activeDescription = descriptionLookup.executeQuery();
				activeDescription.next();
				availableServices.addItem(activeDescription.getString(1));
			}
			availableServices.addActionListener(new availableServicesListener());
			SelectionPanel.add(availableServices);
			if(selected==-1)
			{
				availableServices.setSelectedIndex(availableServices.getItemCount()-1);
			}
			else
			{
				availableServices.setSelectedIndex(selected);
			}
			ServicesPanel.add(SelectionPanel, BorderLayout.CENTER);
			
		} 
		catch (SQLException e) 
		{
			JOptionPane.showMessageDialog(null, "SQL input error");
			e.printStackTrace();
		}
	}