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

Chapter 5. SWT Text Fields > Interacting with the Text in the Text Widget

5.6. Interacting with the Text in the Text Widget

If you are building an interface that displays text to the user from some other source—in other words, you're using text fields that are populated with text values when the window is opened or data is retrieved—you must directly interact with the contents of the text field.

5.6.1. How do I do that?

There are two possible interactions with the text in a field— reading the text out of the field and pushing text into the field. The SWT widgets use the getXXX( ) and setXXX( ) methods similar to the JavaBeans Specification.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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