@Override
	public void actionPerformed(ActionEvent ae) {
		// TODO Auto-generated method stub
if(ae.getSource()==comboBox1  ){
			
			//System.out.println(comboBoxRoom);
			 RoomDataSource roomDS = new RoomDataSource();
			 List<edu.cgu.ist303.db.Room> roomSingle = new ArrayList<edu.cgu.ist303.db.Room>(); 
			 roomSingle = roomDS.getTypeRoom(1);
			 List<edu.cgu.ist303.db.Room> roomDouble = new ArrayList<edu.cgu.ist303.db.Room>(); 
			 roomDouble = roomDS.getTypeRoom(2);
			 List<edu.cgu.ist303.db.Room> roomQuadrupple = new ArrayList<edu.cgu.ist303.db.Room>(); 
			 roomQuadrupple = roomDS.getTypeRoom(3);
			 roomMap = new HashMap<String, Integer>();
			
			 
			 String s = comboBox1.getSelectedItem().toString();
			switch (s) {
				case "Single":
					comboBox2.removeAllItems();
					
					 for(edu.cgu.ist303.db.Room r:roomSingle){
						  roomMap.put(r.getRoom_name(), r.getId());
						 comboBox2.addItem(r.getRoom_name());
					 }  
					break;
					case "Double":
						 comboBox2.removeAllItems();
						 for(edu.cgu.ist303.db.Room r:roomDouble){
							  roomMap.put(r.getRoom_name(), r.getId());
							  comboBox2.addItem(r.getRoom_name());
						 }
						 break;
					case "Quadrupple":
						 comboBox2.removeAllItems();
						 for(edu.cgu.ist303.db.Room r:roomQuadrupple){
							  roomMap.put(r.getRoom_name(), r.getId());
							  comboBox2.addItem(r.getRoom_name());
						 }
						 break;
			}
	}
	
	
}