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
What is method reference in java?
Can vector have duplicates in java?
What is a treemap in java?
What is the use of string and stringbuffer?
What is the use of protected in java?
What does sprintf return?
What is sortedmap interface?
What is a void method java?
How to create com object in Java?
Explain the difference between extends thread vs implements runnable in java?
What are the disadvantages of object oriented programming?
What is classpath?
How to sort a collection of custom Objects in Java?
What does a za z0 9 mean?
Where to store local variables?