ATM system implementation [5] -- Note window [00 original]

Source: Internet
Author: User
Package cn.edu. ynu. Sei. ATM. Client. UI;

Import org. Eclipse. SWT. SWT;
Import org. Eclipse. SWT. Widgets. Button;
Import org. Eclipse. SWT. Widgets. composite;
Import org. Eclipse. SWT. Widgets. label;

/**
* Note window
* @ Author 88250
*/
Public class noticecomposite extends Composite
{
/**
* Return button
*/
Private button returnbtn = NULL;

/**
* Precautions
*/
Private label Label = NULL;

/**
* Instance creation considerations
* @ Param parent window
*/
Public noticecomposite (composite parent)
{
Super (parent, SWT. None );
Returnbtn = new button (parent, SWT. None );
Returnbtn. settext ("return ");
Returnbtn. setbounds (79,150, 54, 29 );

Label = new label (parent, SWT. None );
Label. settext ("1. Prompt for safe use... 2. prevent others from stealing passwords. 3. Card swallowing ");
Label. setbounds (71, 81,150, 50 );
}

/**
* Set the visibility of controls in the container
* @ Param B visibility
*/
Public void setcontentsvisible (Boolean B)
{
Label. setvisible (B );
Returnbtn. setvisible (B );
}

/**
* Get the return button
* @ Return: Return button
*/
Public button getreturnbtn ()
{
Return returnbtn;
}

@ Override
Public void dispose ()
{
Super. Dispose ();
}

@ Override
Protected void checksubclass ()
{
// Disable the check that prevents subclassing of SWT Components
}

}

 

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.