This section illustrates you how to create Login Form.
To create a login form in SWT, the Label class set the labels User
Name and Password and Text class sets the text for the specified fields. The
method shell.setLayout(new GridLayout(2, false)) sets the layout of
the login form. The method setTextLimit(30) sets the limit on maximum
number of characters. The method setEchoCharacter("*") sets
the echo character for the password. A button is created to submit the
After submitting the button, if you haven't specify the username and
password, an alert box will be displayed, which is provided by the class MessageBox.
If you filled the required fields, the box shows the Welcome message along with