Fixed graph to show in JPanel

Got rid of the pop-up JFrame and set the graph to appear in the JPanel.