Corregir bugs y aniadir la opcion de eliminar transacciones

This commit is contained in:
2019-11-15 01:10:55 +01:00
parent 86c642dba9
commit 0d6d20001f
7 changed files with 57 additions and 31 deletions

View File

@@ -74,21 +74,12 @@ public class ControladorPanelLateral implements ActionListener, DateChangeListen
}
break;
}
case "Eliminar Transacciones":{
this.menu.pestanias.get(this.menu.pestania.getSelectedIndex()).eliminarDeseleccionados();
}
}
/*if(e.getActionCommand().equals(this.vista.mostrarEstadisticas.getActionCommand())) {
XYSeries serie = new XYSeries("Mes");
serie.add(10,1);
serie.add(4,2);
serie.add(90,10);
XYSeriesCollection dataset = new XYSeriesCollection(serie);
JFreeChart chart = ChartFactory.createXYLineChart("Mes", "Dias", "Gastos", dataset);
ChartFrame frame = new ChartFrame("Estadisricas", chart);
frame.setVisible(true);
frame.setSize(700,500);
}
*/
}
private void aniadirElementos() {
@@ -101,6 +92,8 @@ public class ControladorPanelLateral implements ActionListener, DateChangeListen
this.mes=VistaPanelLateral.elegirMes.getDate().getMonth();
this.anio=VistaPanelLateral.elegirMes.getDate().getYear();
}
this.vista.eliminarTransaccion.addActionListener(this);
this.vista.eliminarTransaccion.setActionCommand("Eliminar Transacciones");
}
public void dateChanged(DateChangeEvent arg0) {