Santhiya Park Java SE Training Summary (78-) (Swing design mode, observer design pattern)

Source: Internet
Author: User
  1. BorderLayout Sub-east, the default is the layout of the frame
  2. FlowLayout is the default layout for the panel
  3. GridLayout is a grid layout! You can specify the number of meshes when instantiating a grid layout object
  4. The panel must be added to a container to be displayed!
  5. 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
  6. The event source is a component of the event that occurs, such as clicking a button, which is the event source
  7. The event handler is a way to receive events, handle events, and users write their own!
  8. 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!
  9. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.