Java AWT Question and Answers
29. | What are the subclasses of the Container class? |
---|---|
The container class has three major subclasses. They are
|
|
30. | Which method is method to set the layout of a container? |
---|---|
setLayout () | |
31. | What are the default layouts for a applet, a frame and a panel? |
---|---|
For an applet and a panel, Flow layout, and The FlowLayout manager attempts to honor the preferred size of any components. | |
32. | What is the difference between a Scrollbar and a Scrollpane? |
---|---|
|
|