Tuesday, 14 February 2012

What is the difference between a Window and a Frame?

A frame is a resizable, movable window with title bar and close button. Usually it contains Panels. Its derived from a window and has a borderlayout by default.
A window is a Container and has BorderLayout by default. A window must have a parent Frame mentioned in the constructor.

No comments: