• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. SWT Text Fields > Creating Password Fields

5.15. Creating Password Fields

Sometimes you may want to create fields that allow text to be entered, but that hide that text from onlookers. A password entry field is a typical example. Because it would not be secure to display the text that is entered for all to see, a specific character is displayed to mask that text as it is being entered.

5.15.1. How do I do that?

To create a password-type field, use the setEchoChar() method:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint