public static void comboUpdate() {
		int row = table.getSelectedRow();
		txt_idroom.setText((String) table.getValueAt(row, 0));
		txt_roomName.setText((String) table.getValueAt(row, 1));
		txt_Floor.setText((String) table.getValueAt(row, 2));				
		txt_roomStatusID.setText(((String) table.getValueAt(row, 3)=="Available")? "1": "2");
		txt_roomNoOfAdult.setText((String) table.getValueAt(row, 4));
		txt_roomNoOfChild.setText((String) table.getValueAt(row, 5));
		txt_roomFee.setText((String) table.getValueAt(row, 6));				

		
		ConnectData ds=new ConnectData();
		ds.connect();			
		String value = null;
		String statusID = (((String) table.getValueAt(row, 3)).equals("Available")? "1": "2");
		System.out.println((String) table.getValueAt(row, 3));	
		System.out.println(statusID);
		String newSQL="SELECT roomStatusName FROM RoomStatus where roomStatusID='" + statusID +"'"; 

		try { 
			ResultSet rs =ds.ExcuteQuery(newSQL); 						
			if (rs != null) {
				value = (String)rs.getString("roomStatusName");
				//System.out.println(value);
			} 
			rs.close(); ds.dispose(); 
		} catch(Exception ex){System.out.println("Error : " + ex);}


		int a=0;
		for (int i=0; i<cb_roomStatusID.getItemCount(); i++){
			if(((KeyValue)cb_roomStatusID.getItemAt(i)).getValue().equals(value))
			{
				a=i;
				break;
			}
		}
		cb_roomStatusID.setSelectedIndex(a);
	}