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.