Please post a small complete program that compiles, executes and shows the problem.

One possible problem is calling setVisible before the GUI is built. Call it when the GUI is ready to be seen.