//**************************************//
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