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 we can make a read-only class in java?
What is the access scope of a protected method?
What types of index data structures can you have in java?
How to make a class or a bean serializable?
What are the Static and Dynamic Variables? Differentiate them.
Why is sizeof not a function?
Write a function to find out longest palindrome in a given string?
What is difference between stringbuffer and string?
What are exception handling keywords in java?
I don’t want my class to be inherited by any other class. What should I do?
Can a serialized object be transferred via network?
What is replacefirst in java?
What is a java list?
What is OOP Language?
What is the java reflection api? Why it’s so important to have?