- 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