Graphical user interface design trivial concepts

Source: Internet
Author: User

//**************************************//

The graphical user interface or graphical user interface (graphical user Interface,gui) is a graphical display of the computer operating environment user interface. The graphical interface is easier for users than the command-line interface used by earlier computers. (such as the difference between your use of windowsxp and the DOS operating system). The GUI is event-driven, which means that once the user interacts with the GUI, the GUI component generates an "event" (action). Common interactions include a west-east mouse, stand-alone mouse button, input in a text field, select an option from the menu, and close a window, menu bar, button, and so on.

//**************************************//

Java Event handling mechanism: Event sources allow listeners to register event objects, send an event object to the relevant registered object when an event occurs, and the listener chooses to run the relevant code based on the relevant information.

Event Sources: Event source, which is where events occur, that is, the components that cause events, button buttons, file components, and so on, can be used as event sources. For example, if you click a button, then the button is the event source, and to make the button respond to something, you need to register a specific listener.

Listener: Event handler Events handler, also known as listener, specific to the listener event class, when it hears the event object generated, he calls the appropriate method to handle.

//**************************************//

The difference between a text box and a label event

Text boxes (TextField) and labels (label) can be expressed in words. TextField allows a user to edit a text component of a single line of text, which can add an appropriate listener event, while a label object is a component that can place text in a container. A label displays only one line of read-only text. The text can be changed by the application, but the user cannot edit it directly.

Graphical user interface design trivial concepts

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.