Exemplo n.º 1
0
 GraphPanel(JFrame newFrame) {
   frame = newFrame;
   panel = new GraphicPanel();
   panel.setDisplayPlot(false);
   datapanel = new DataPanel(frame);
   panel.setDataPanel(datapanel);
   frame.getContentPane().add(panel, "Center");
 }
Exemplo n.º 2
0
 public void actionPerformed(ActionEvent e) {
   if (!datapanel.isInitialized()) {
     return;
   }
   datapanel.refreshData();
   panel.setDisplayPlot(true);
   panel.update(panel.getGraphics());
   frame.setSize(700, 600);
   frame.setVisible(true);
   frame.pack();
 }