GUI Programming note 03:gui component inheritance diagram

Source: Internet
Author: User

1. Component Inheritance diagram:

2. Analyze the above component inheritance diagram

(1) Component:public abstract class Component extends Object implements ImageObserver, Menucontainer, Serializable

component is a graphical representation of objects that can be displayed on the screen and interact with the user. Buttons, checkboxes, and scroll bars in a typical graphical user interface are examples of components. Component The Toolkit class is an abstract superclass of a menu that is not related to the abstract Window component. You can also extend the class component directly to create a lightweight component. Lightweight components are components that are not associated with native opaque windows.

(2) button buttons;

Label tag;

checkbox check box;

TextComponent text object;

TextArea text field (multi-row multi-column data entry);

TextField text (single line)

These are the controls that are displayed independently

(3) Container: Meaning of the container

The container is divided into window (form) and panel (panels), and the form region of a large window is divided into a number of panels (panel) Small areas

Window objects are top-level windows without boundaries and menu bars. The default layout for Windows is borderlayout. This is not really useful, so we're going to use the sub-class frame and dialog of window.

Container is a container that is a special component, and his role is to install (2) in the control

GUI Programming note 03:gui component inheritance diagram

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.