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

Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

587


What is nested loop? What is dangling else condition in it?

572


How do you read and print a string in java?

523


What is double word?

533


Explain java heap space and garbage collection?

582






What is tochararray in java?

498


What is java and why do we need it? Explain

581


What steps are taken when the OS shifts from one-thread execution to another?

902


How does linkedhashmap work in java?

517


What are the topics in core java?

529


Can a private method of a superclass be declared within a subclass?

528


What is main in java?

508


What is the final keyword in java?

549


Is ++ operator is thread safe in java?

517


Explain about data types?

573