Java gui programming Overview Study Notes (22), gui Study Notes
The following content is my study notes on the java video tutorial of Miss Bi Xiangdong!
Java gui programming:
Windows provides two methods:
1. GUI
2. CLI;
GUI: Grahi User Interface, graphical User Interface.
Features: displays the computer operation interface in graphical mode, which is more convenient and intuitive.
CLI: Command line User Interface (Command line User Interface)
Features:
1. Common doscommand line operations.
2. You need to remember some common commands, which are not intuitive.
Example:
For example, creating a folder or deleting a folder.
The objects provided by Java for the GUI are included in the java Awt and javx. Swing packages, and the packages contain related components.
Awt and Swing
Java. Awt: Abstract Window ToolKit (Abstract Window ToolKit). You need to call the local system method to implement the function. Is a heavyweight control.
JAVA. Swing: a set of graphical user interface systems built on the basis of AWT. More components are provided and fully implemented by java. Enhances portability and is a lightweight control.
Small issues in java GUI Programming
It is clear that Java cannot directly implement the status bar (that is, it does not have the status bar class). If you need to "Draw" it by yourself, it is to use JLabel and Border to "simulate" at the bottom of the window.
It is very troublesome to use Java for GUI development. After all, the main direction of Java is network.
Java GUI Program Design
Elements of Java GUI Program Design: Interface Component Interface layout event processing
What are the three elements of event processing in Java GUI programming: Event source, event object, and event listener?
There are four implementation methods for events: member Internal classes, anonymous internal classes, and container classes. I don't know either of them.