Try waiting to call setVisible() until after everything is ready to be seen. The code adds to the GUI after it is called.

Please edit your post and wrap your code with code tags:


<YOUR CODE...