Example usage for javax.swing.text TextAction actionPerformed

List of usage examples for javax.swing.text TextAction actionPerformed

Introduction

In this page you can find the example usage for javax.swing.text TextAction actionPerformed.

Prototype

public void actionPerformed(ActionEvent e);

Source Link

Document

Invoked when an action occurs.

Usage

From source file:org.pentaho.ui.xul.swing.tags.SwingWindow.java

public void copy() throws XulException {
    TextAction act = new DefaultEditorKit.CopyAction();
    act.actionPerformed(new ActionEvent(this.getManagedObject(), 999, "copy"));

}

From source file:org.pentaho.ui.xul.swing.tags.SwingWindow.java

public void cut() {
    TextAction act = new DefaultEditorKit.CutAction();
    act.actionPerformed(new ActionEvent(this.getManagedObject(), 999, "cut"));
}

From source file:org.pentaho.ui.xul.swing.tags.SwingWindow.java

public void paste() {
    TextAction act = new DefaultEditorKit.PasteAction();
    act.actionPerformed(new ActionEvent(this.getManagedObject(), 999, "paste"));
}