Soporte a fecha iniciado

This commit is contained in:
roche
2019-11-13 13:59:45 +01:00
parent ba84d7d15b
commit 7d6a253033
9 changed files with 48 additions and 12 deletions

View File

@@ -1,12 +1,20 @@
package VistaControlador;
import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartFrame;
import org.jfree.chart.JFreeChart;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
import com.github.lgooddatepicker.components.DatePicker;
import com.github.lgooddatepicker.zinternaltools.DemoPanel;
public class ControladorPanelLateral implements ActionListener{
private VistaPanelLateral vista;
@@ -27,17 +35,18 @@ public class ControladorPanelLateral implements ActionListener{
ChartFrame frame=new ChartFrame("Estadisricas", chart);
frame.setVisible(true);
frame.setSize(700,500);
}else if(e.getActionCommand().equals(this.vista.elegirMes.getActionCommand())){
}
//}else if(e.getActionCommand().equals(this.vista.elegirMes.getActionCommand())){
//}
}
private void aniadirElementos() {
this.vista.mostrarEstadisticas.addActionListener(this);
this.vista.mostrarEstadisticas.setActionCommand("Mostrar estadisticas");
this.vista.elegirMes.addActionListener(this);
this.vista.elegirMes.setActionCommand("Elegir mes");
//this.vista.elegirMes.addActionListener(this);
//this.vista.elegirMes.setActionCommand("Elegir mes");
}
}