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
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.
What is nested loop? What is dangling else condition in it?
How do you read and print a string in java?
What is double word?
Explain java heap space and garbage collection?
What is tochararray in java?
What is java and why do we need it? Explain
What steps are taken when the OS shifts from one-thread execution to another?
How does linkedhashmap work in java?
What are the topics in core java?
Can a private method of a superclass be declared within a subclass?
What is main in java?
What is the final keyword in java?
Is ++ operator is thread safe in java?
Explain about data types?