201671010130 2016-2017-2 "Java programming" 12th Week study Summary

Source: Internet
Author: User

    • Abstract window Toolbox (Toolkit, AWT) contains many of the component classes and container classes used to design the GUI in the java.awt package
    • The position and size of a component in a container (such as JFrame) is determined by the layout manager. All the containers will
    • Use a layout manager to automate the layout management of components.
    • Develop GUI program steps (Capture online experience)

1. Inheriting jframe (class inheritance)

2. Define Required components (member variables)

3. Creating components (in constructors)

4. Adding components (in construction method)

5. Set layout Manager (in construction method)

6. Display form (in constructor)

    • Popular components of Swing (JFrame (frame), JButton (buttons), JTextField (text box), JScrollPane (scrolling pane)
    • Java 2D Library, which provides a graphical set of operations.
    • The Java 2D Graphics class uses a floating-point coordinate system, which allows you to specify units for coordinates. The coordinate system is a scheme for determining each point on the screen. The upper-left coordinate of the GUI component is (0,0). A coordinate system is composed of x and Y coordinates. The coordinate unit is measured in pixels. The pixel represents the smallest resolution unit on the display.

201671010130 2016-2017-2 "Java programming" 12th Week study Summary

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.