I can't see where you are creating the progress bar, not even by using ctrfl‑F. You are not going to solve anything in the midst of so much code. Your code has problems:
Joseph Zhao wrote:. . . I have tried to create another jframe that creates a JProgressBar . . .
I think, no. I think you should create a separate class doing the calculations; the panel is only for displaying the resuts.
Joseph Zhao wrote:So should I create methods within the vertex jpanel class that does the calculations . . . .