Changed GUI to show graph on jPanel