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
Can we convert integer to string in java?
please send me hr interview questions in it industry
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Can private members of a base class are inheritable justify?
How many techniques can be employed to create a string object?
What is difference between public static and void?
Can you give names of Container classes?
What is class??
How are java objects passed to a method and what are native methods?
What is string example?
What is consumer interface?
Can we override constructor?
What is the nested interface?
How do you stop a thread in java?
Can we override private method?