Edit.setAcceptsReturn

Overview | Methods | This Package | All Packages

Edit.setAcceptsReturn

Sets a boolean value indicating whether pressing ENTER in a multiline edit control creates a new line of text in the edit control instead of activating the default button for the form.

Syntax

public final void setAcceptsReturn( boolean value )

Parameters

value

Set to true pressing ENTER in the multiline edit control creates a new line of text in the edit control; set to false if pressing ENTER in the multiline edit control activates the default button for the form. If you set this to false, the user must press CTRL+ENTER to create a new line in the multiline edit control. The default value is true.

See Also   getAcceptsReturn