Question: Why is it sometimes necessary to place a component inside a panel and then place the panel inside a container governed by a BorderLayout manager?

Why is it sometimes necessary to place a component inside a panel and then place the panel inside a container governed by a BorderLayout manager?

Step by Step Solution

3.42 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Component is an abstract class so that you can only create objects belonging to its subclasses not to Component itself The subclasses that represent common GUI elements are Button Checkbox Choice Labe... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Starting Out With Java From Control Structures Questions!