If you do not set the size of the Frame (Window, JFrame, JWindow, JDialog) before displaying it on screen, it may have width and height 0 and you will not see it. So, always initialize Frame size, either by hand (setSize(x,y)) or by calling pack() after initializing all components.
See also Pack Frames.