What is the difference between panel and frame ?

Answer Posted / rajesh dangi

A Frame is an independent object which can exist on its
own. It can contain one or more Panel object within it.
Whereas a Panel can not exist on its own. It need a parent
object like Frame/Window to be displayed/existance.

Most of the characteristics are similar in them since their
super parent is Component & Container classes. The major
difference is that Frame can exist on its own but Panel can
not.

Is This Answer Correct ?    46 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if constructor is protected in java?

739


What are the advantages of java over C++?

901


what is abstract class in Java?

863


How do you calculate square roots?

806


What is command line used for?

803






What is a lightweight component?

772


What is an interface in java?

760


How to split a string in java?

844


How to call one constructor from the other constructor ?

785


What is string and its types?

819


What is a default method?

719


Which collection is thread safe in java?

707


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1741


What package is math in java?

716


What is a singleton puppy?

715