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
Which class is the superclass for every class in java programming?
What are the different types of inner classes?
What are the important features of Java 10 release?
What invokes a thread's run() method in java programming?
What is difference between Heap and Stack Memory?
What does a za z0 9 mean?
What is the main purpose of serialization in java?
Why java applets are more useful for intranets as compared to internet?
Why main() method is public, static and void in java ?
What are the 4 versions of java?
What is runtime locatable code?
What is diamond operator in java?
Variables used in a switch statement can be used with which datatypes?
What is the purpose of extern variable?
What happens to a static var that is defined within a method of a class?