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

how we can make a read-only class in java?

540


What is the access scope of a protected method?

562


What types of index data structures can you have in java?

612


How to make a class or a bean serializable?

537


What are the Static and Dynamic Variables? Differentiate them.

601






Why is sizeof not a function?

545


Write a function to find out longest palindrome in a given string?

590


What is difference between stringbuffer and string?

492


What are exception handling keywords in java?

605


I don’t want my class to be inherited by any other class. What should I do?

573


Can a serialized object be transferred via network?

512


What is replacefirst in java?

574


What is a java list?

582


What is OOP Language?

627


What is the java reflection api? Why it’s so important to have?

551