How to Make Frames (Main Windows)
by, 04-26-2012 at 09:50 PM (611 Views)
Frame is considered to be a top leveled window that has a border and a title. Frame size consist of any area which has been designated for sake of border. Border area dimensions might be obtained by method getInsets. Border area is also present in frame’s overall size so frame’s portion is obscured effectively, which constraint the area present to render or display the subcomponents, to that rectangle which consists of location of upper left corner (insets.left, insets.top), and width size (insets.left + insets.right and height (insets.top + insets.bottom).
Frame which has been implemented as the JFrame class’s instance, is basically window which consists of decorations like title, border. Support is provided to the button components which iconify or close the window. Appilcations along with GUI consist of 1 frame at least. Frames are also used by applets, sometimes.
For making a wondow which is another window dependent- disappearing in case when some other window gets iconified. For example, dialog usage rather than frame. For making window that is visible in another window, an internal frame shall be used.