Finalizado soporte de persistencia

This commit is contained in:
2019-11-15 14:37:52 +01:00
parent 0d6d20001f
commit 18238bd6b8
13 changed files with 209 additions and 57 deletions

View File

@@ -54,7 +54,7 @@ public class VistaAniadirVisualizar extends JPanel{
}
public void aniadirElemento(String nombre, float dinero, ControladorAniadirVisualizar controlador) {
Transaccion transaccion = new Transaccion(nombre, dinero,panelLateral.getDate());
Transaccion transaccion = new Transaccion(nombre, dinero,panelLateral.getDate(),this.gestiones);
this.gestiones.aniadirGasto(transaccion);
JCheckBox check = new JCheckBox(transaccion.toString());
check.setSelected(true);