Prev Up Next
Go backward to TextField Constructors
Go up to Text Areas
Go forward to Mutator Methods for Text Fields and Areas

Accessor Methods for Text Fields and Areas


someTextSpace.getText( )

The getText method returns a String value corresponding to the characters currently displayed in a TextArea or TextField. In the case that the component is being used for user input, this method provides the means through which a program can access the information the user has entered.


someTextSpace.getSelectedText( )

The getSelectedText method returns a String value corresponding to the characters currently selected in a TextArea or TextField.


Prev Up Next