예제 #1
0
 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();
 }
예제 #2
0
 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);
 }
예제 #3
0
  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