Corregir bugs y aniadir la opcion de eliminar transacciones
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user