package fauxExchange; import javax.swing.*; import java.awt.*; import java.awt.event.*; class Grapher extends JFrame { public Grapher(xyGraph gph){ this.setTitle("Trade Log"); Container cp = getContentPane(); //createComponents(); getContentPane().add(new graphWindow(gph)); this.setSize(450,450); this.show(); addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){//System.exit(0); } }//end WindowAdpater() ); } public static void main(String[] argv){ int data[] = {20,30,40,50,60,70,50,40,30,20,10}; xyGraph myG = new xyGraph(data); Grapher g = new Grapher(myG); g.repaint(); } } //end class