public media(String title) throws Exception { super(title); ResultSet dt = nucleo.getMedia(); CategoryDataset dataset = media.createDataset(dt); JFreeChart chart = media.createBarChart(dataset); ChartPanel panel = new ChartPanel(chart); panel.setPreferredSize(new Dimension(400, 300)); setContentPane(panel); dt.close(); }
public media(Nucleo nuc) throws Exception { super("Classificações"); initComponents(); nucleo = nuc; ResultSet dt = nucleo.getMedia(); CategoryDataset dataset = media.createDataset(dt); JFreeChart chart = media.createBarChart(dataset); ChartPanel panel = new ChartPanel(chart); panel.setPreferredSize(new Dimension(400, 300)); setContentPane(panel); }
private void formWindowClosing( java.awt.event.WindowEvent evt) { // GEN-FIRST:event_formWindowClosing nucleo.setEnab(true); this.dispose(); // TODO add your handling code here: } // GEN-LAST:event_formWindowClosing