What is the difference between panel and frame

Showing Answers 1 - 3 of 3 Answers

mrsunilg

  • Aug 6th, 2008
 

Frame : A resizable, movable window with title bar and
close button. Usually it contains Panels.
It is Derived From Window. Default layout is BorderLayout.

Panel : A region internal to a Frame or another Panel. Used
for grouping components together. Not bounded by a visible
border. You can change background colour of a panel to
delimit it though. Lives inside some enclosing Container.
It is Derived From  Container. Default layout is FlowLayout.

  Was this answer useful?  Yes

Mranal Jadhav

  • Jan 17th, 2016
 

Frame: The frame encapsulate the commonly use windows and it is a subclass of a window that has title bar, menu bar, status bar, borders and windows resizing corners.


Panel: The panel is the subclass of a window class and super class of an applet. The panel as the window that does not have title bar, menu bar, window resizing corners.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions