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 the formula to calculate percentage?
What is multithreading in java?
Why are lists ordered in java?
Why put method is used?
What are the types of java?
What is a boolean structure?
What about method local inner classes or local inner classes in java?
What is a values collection view ?
Can classes declared using the abstract keyword cab be instantiated?
What is arrays aslist in java?
How to reverse string in java?
Can java hashmap have duplicate keys?
Can I import same package/class twice?
Explain the difference between abstract class and interface in java?
What are different types of classloaders?