What is the difference between panel and frame ?
Answer Posted / sathya
Frame : A resizable, movable window with title bar and
close button. Usually it contains Panels.
It is Derived From Window. Default layout is BorderLayout.
Panel : A region internal to a Frame or another Panel. Used
for grouping components together. Not bounded by a visible
border. You can change background colour of a panel to
delimit it though. Lives inside some enclosing Container.
It is Derived From Container. Default layout is FlowLayout.
| Is This Answer Correct ? | 217 Yes | 23 No |
Post New Answer View All Answers
How to compare strings in java?
Can a string be null?
Can a static method be final?
Which variables are stored in heap?
How do you escape sequences in java?
Do I need java on my pc?
Can you make a constructor final?
What is default constructors?
What are keywords give examples?
What is lambda expression in java?
What is the java reflection api? Why it’s so important to have?
What are checked exceptions?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
What isan abstract class and when do you use it?
Explain the importance of finalize() method.