I have a Bubble Sort algorithm which I want to visualize with SWING in a JFrame. It goes well, if I call the function in a standalone position, but doesn\'t if I call it fro