When I run my gui, I have to resize the window for everything to show up. Does someone know what the problem is?
don't need to add pack() method.
Just add the setSize(int, int) on the end of everything, then it will work well.
and setVisible(true) on next to setSize.