javax.swing.text

Class DefaultEditorKit.InsertBreakAction

public static class DefaultEditorKit.InsertBreakAction extends TextAction

This action inserts a newline character into the document of the text component. This is typically triggered by hitting ENTER on the keyboard.
Constructor Summary
InsertBreakAction()
Creates a new InsertBreakAction.
Method Summary
voidactionPerformed(ActionEvent event)
Performs the Action.

Constructor Detail

InsertBreakAction

public InsertBreakAction()
Creates a new InsertBreakAction.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Performs the Action.

Parameters: event the action event describing the user action