Java Swing Question and Answers
17. | What method is used to specify a container's layout? |
---|---|
|
|
18. | Which containers use a Flow Layout as their default layout? |
---|---|
The Panel and Applet classes use the Flow Layout as their default layout. | |
19. | Name Components subclasses that support painting? |
---|---|
|
|
20. | What is the preferred size of a component? |
---|---|
The preferred size of a component is the minimum component size that will allow the component to display normally. | |