About SWT Common components (buttons, checkboxes, radio boxes (button classes))

Source: Internet
Author: User

The button is the most commonly used component in SWT. And it's easier to use.

Program Description:

The button class is created by the new button (Composite parent,int style), which has two parameters:

The first parameter refers to which container the button is created on. Composite is the most commonly used container, and the shell is a subclass of composite, so this parameter can also accept the shell and any classes that inherit from composite.

The second parameter is used to specify which (or several) specifications the button applies, SWT. None is the default style for keeping the button component. The design is actually a constant, such as the value of Swt.none is 0, view Swt.class source code can find a lot of this constant.

Model table for Button class

About SWT Common components (buttons, checkboxes, radio boxes (button classes))

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.