1 |
For each basic component, one can create one or more instances of the component type and then use one of the "add" methods to place it into a Container such as an applet window.
|
2 |
For now, we assume that components are added to the window in order from left to right and top to bottom as they fit. (This is actually the default FlowLayout Manager).
|
3 |
Also for each component, there will be other methods:
-
some affect the properties or appearance of the component, such as setBackground.
-
others may dynamically obtain or change information about the component, such as getText for TextFields, which may return whatever String the user has typed into the TextField.
|