public BillHistoryWindow(Household h) {
		setResizable(false);
		setTitle("Recibos");
		Household household = h;

		this.familyService = FamilyService.getInstance();
		this.billService = BillService.getInstance();

		String[] yearString = new String[20];
		String[] monthString = new String[12];
		monthString[0] = "ENERO";
		monthString[1] = "FEBRERO";
		monthString[2] = "MARZO";
		monthString[3] = "ABRIL";
		monthString[4] = "MAYO";
		monthString[5] = "JUNIO";
		monthString[6] = "JULIO";
		monthString[7] = "AGOSTO";
		monthString[8] = "SEPTIEMBRE";
		monthString[9] = "OCTUBRE";
		monthString[10] = "NOVIEMBRE";
		monthString[11] = "DICIEMBRE";

		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 464, 315);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);

		JComboBox<Bill> comboBox = new JComboBox<Bill>();

		List<Bill> bills = null;
		try {
			bills = billService.findBillsByHousehold(household);
		} catch (BillNotFoundException e1) {
			e1.printStackTrace();
		}

		comboBox.removeAllItems();

		if (bills.size() == 0) {
			comboBox.setEnabled(false);
		} else {
			Iterator<Bill> iter = bills.iterator();
			while (iter.hasNext()) {
				//old.getDate().add(Calendar.MONTH, 1);
				/*Bill b = new Bill(old.getHouseHold(), old.getTotal(),
						old.getBillLines(), old.getDate());
				b.getDate().add(Calendar.MONTH, +1);*/
				comboBox.addItem(iter.next());
			}
			comboBox.setSelectedIndex(0);
		}

		JButton btnNewButton = new JButton("Buscar");

		JLabel lblNewLabel = new JLabel("Núcleo Familiar: "
				+ household.getBanckAccount());

		JLabel lblNewLabel_1 = new JLabel("Coste Total: ");

		tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		GroupLayout gl_contentPane = new GroupLayout(contentPane);
		gl_contentPane.setHorizontalGroup(gl_contentPane
				.createParallelGroup(Alignment.LEADING)
				.addGroup(
						gl_contentPane
								.createSequentialGroup()
								.addContainerGap()
								.addComponent(comboBox,
										GroupLayout.PREFERRED_SIZE,
										GroupLayout.DEFAULT_SIZE,
										GroupLayout.PREFERRED_SIZE).addGap(145)
								.addComponent(btnNewButton)
								.addContainerGap(190, Short.MAX_VALUE))
				.addGroup(
						gl_contentPane
								.createSequentialGroup()
								.addComponent(tabbedPane,
										GroupLayout.PREFERRED_SIZE, 440,
										GroupLayout.PREFERRED_SIZE)
								.addContainerGap(18, Short.MAX_VALUE))
				.addGroup(
						gl_contentPane
								.createSequentialGroup()
								.addContainerGap()
								.addComponent(lblNewLabel)
								.addPreferredGap(ComponentPlacement.RELATED,
										142, Short.MAX_VALUE)
								.addComponent(lblNewLabel_1).addGap(111)));
		gl_contentPane
				.setVerticalGroup(gl_contentPane
						.createParallelGroup(Alignment.LEADING)
						.addGroup(
								gl_contentPane
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												gl_contentPane
														.createParallelGroup(
																Alignment.BASELINE)
														.addComponent(
																comboBox,
																GroupLayout.PREFERRED_SIZE,
																GroupLayout.DEFAULT_SIZE,
																GroupLayout.PREFERRED_SIZE)
														.addComponent(
																btnNewButton))
										.addPreferredGap(
												ComponentPlacement.UNRELATED)
										.addGroup(
												gl_contentPane
														.createParallelGroup(
																Alignment.BASELINE)
														.addComponent(
																lblNewLabel)
														.addComponent(
																lblNewLabel_1))
										.addPreferredGap(
												ComponentPlacement.RELATED, 15,
												Short.MAX_VALUE)
										.addComponent(tabbedPane,
												GroupLayout.PREFERRED_SIZE,
												193, GroupLayout.PREFERRED_SIZE)));

		JPanel panel = new JPanel();
		tabbedPane.addTab("New tab", null, panel, null);
		GroupLayout gl_panel = new GroupLayout(panel);
		gl_panel.setHorizontalGroup(gl_panel.createParallelGroup(
				Alignment.LEADING).addGap(0, 452, Short.MAX_VALUE));
		gl_panel.setVerticalGroup(gl_panel.createParallelGroup(
				Alignment.TRAILING).addGap(0, 205, Short.MAX_VALUE));

		panel.setLayout(gl_panel);

		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {

				tabbedPane.removeAll();

				Bill r = (Bill) comboBox.getSelectedItem();
				lblNewLabel_1.setText("Coste Total: " + r.getTotal());

				int i = 0;

				List<Student> students = familyService.findStudents(household);
				for (Student student : students) {
					Calendar now = Calendar.getInstance();
					if (student.getDeleteDate() != null) {
						if ((student.getDeleteDate().get(Calendar.MONTH) < now
								.get(Calendar.MONTH) && (student
								.getDeleteDate().get(Calendar.YEAR) == now
								.get(Calendar.YEAR)))
								|| (student.getDeleteDate().get(Calendar.YEAR) < now
										.get(Calendar.YEAR))) {
							continue;
						}
					}
					tabbedPane.addTab(student.getName(),
							createPanelBills(r, student));
					tabbedPane.setSelectedIndex(i);
					i++;
				}

			}
		});
		contentPane.setLayout(gl_contentPane);

	}