Java gui programming Overview Study Notes (22), gui Study Notes

Source: Internet
Author: User

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.

Related Article

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.