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

Chapter 5. SWT Text Fields > Creating Display-Only Text Fields

5.14. Creating Display-Only Text Fields

At times you may need to display text to the user without permitting the user to modify or otherwise interact with the text—in effect, creating a display-only text field.

5.14.1. How do I do that?

To create a read-only text field, set the text field's enabled attribute to false. This creates a text field that is grayed out as in Figure 5-8.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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