What is the difference between panel and frame ?

Answer Posted / sathya

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.

Is This Answer Correct ?    217 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the formula to calculate percentage?

526


What is multithreading in java?

543


Why are lists ordered in java?

537


Why put method is used?

519


What are the types of java?

599






What is a boolean structure?

552


What about method local inner classes or local inner classes in java?

544


What is a values collection view ?

679


Can classes declared using the abstract keyword cab be instantiated?

554


What is arrays aslist in java?

513


How to reverse string in java?

610


Can java hashmap have duplicate keys?

505


Can I import same package/class twice?

488


Explain the difference between abstract class and interface in java?

532


What are different types of classloaders?

583