I have made the corrections that you mentioned above but
I am still getting an error as below:
panel = new GraphPanel(this);
constructor GraphPanel in class project.GraphPanel cannot be applied to given types;
reason:actual argument project.Graph cannot be converted to javax.swing.JPanel by method invocation conversion
Its asking to create constructor GraphPanel(project.Graph) in project.GraphPanel
How to solve this?