What is the Difference between a window and a Frame?
A window is an undecorated Frame. That is it doesn’t
have title bar, border and any close button. It is just a container, which
holds children components on it like button, label, text field, etc. Simple we
can say it is an imaginary rectangle. The default layout to place these
children is Border Layout.
A Frame is derived from window but it has title bar,
border, close button, minimize button, resizable and movable options. By
default it also has Border Layout.
Note:
A frame is a part of a window, but a window is not a part of window.
fuck note
ReplyDelete