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 is data type in computer?

517


Difference between vector and arraylist.

576


What is the difference between serializable and externalizable interface?

563


Why do we override tostring method in java?

492


What is the maximum size of byte array in java?

532






What is final keyword in java?

547


What is generic type?

564


What is a method declaration?

506


Can we have try block without catch block?

578


What are Normalization Rules? Define Normalization?

545


In the below example, what will be the output?

588


What is nullpointerexception in java?

521


What is classes in java?

515


What is quick sort in java?

551


Is java code slower than native code?

551