- BorderLayout Sub-east, the default is the layout of the frame
- FlowLayout is the default layout for the panel
- GridLayout is a grid layout! You can specify the number of meshes when instantiating a grid layout object
- The panel must be added to a container to be displayed!
- An event is an object that describes what happened, and these objects are provided by AWT, such as left-click to produce a ActionEvent object
- The event source is a component of the event that occurs, such as clicking a button, which is the event source
- The event handler is a way to receive events, handle events, and users write their own!
- Click on a button to generate an event (ActionEvent), you write the event handler, if you write the event handler will be uploaded to the corresponding listener inside the Actionperform (ActionEvent e) of E!
- An event source can register multiple listeners, and the methods inside each listener will execute!
Santhiya Park Java SE Training Summary (78-) (Swing design mode, observer design pattern)