1 |
In the simplest use of AWT, one could add a Button to an Applet (grandchild of Container) using in the init() method for Applet
-
Button b = new Button("Are You Feeling well");
-
add(b); // add() is a Container method
|
2 |
The various added Components are put in the panel by the LayoutManager using order in which they were added
|
3 |
A Final critical part of the AWT is the actions generated by these components which are processed by overriding the action() method in Component
-
action(Event e, Object Anyargemightliketoreturn);
|
4 |
We define extra events -- such as those connected with scrolling or selecting buttons to those of basic mouse/keyboard
|