Java Swing Question and Answers
| 1. | What are differences between Swing and AWT? |
|---|---|
There is couple of differences between swing and AWT.
|
|
| 2. | Why Swing components are called lightweight component? |
|---|---|
|
|
| 3. | What is the difference between a scrollbar and a scrollpane? |
|---|---|
|
|
| 4. | What is a container in a GUI? |
|---|---|
| A container contains and arranges other components (including other container) through the use of layout managers, which use specific layout policies to determine where components should go as a function of the size of the container. | |