Explanation : For Applets and Panels FlowLayout is the default one, BorderLayout is default for Window and Frames.