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

Chapter 5. SWT Text Fields > Creating Multiline Text Fields

5.9. Creating Multiline Text Fields

Often your interface design mandates that you create a text field that permits a user to enter more data than can be conveniently viewed in a single-line edit type of text field. For these types of applications, such as text editors or database applications that allow the entry of free-form text (perhaps for comment fields), you must use a multiline edit-style text field.

5.9.1. How do I do that?

Creating a multiline text field is easy—just specify the SWT.MULTI style in the Text constructor:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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