public void actionPerformed(ActionEvent e) 
		{
			int hours;
			String stringMinutes;
			int activeItem = availableServices.getSelectedIndex();
			
			try
			{
				int time = Integer.parseInt(editTimeRequired.getText());
				hours = time/60;
				int minutes = time%60;
				if(minutes<10)
				{
					stringMinutes = "0" + minutes;
				}
				else
				{
					stringMinutes = Integer.toString(minutes);
				}
				PreparedStatement updateTimeRequired = conn.prepareStatement("UPDATE service_data SET TimeRequired = ? WHERE idService = ?");
				updateTimeRequired.setTime(1, Time.valueOf(hours + ":" + stringMinutes + ":00"));
				updateTimeRequired.setInt(2, activeItem+1);
				updateTimeRequired.executeUpdate();
				JOptionPane.showMessageDialog(null, "Successful update!");
				buildSelectionPanel(activeItem);
			}
			catch(NumberFormatException e1)
			{
				JOptionPane.showMessageDialog(null, "Invalid format for New Time Required! Enter an integer.");
				return;
			} catch (SQLException e2) 
			{
				JOptionPane.showMessageDialog(null, "SQL input error");
				e2.printStackTrace();
			}
		}