Example usage for javax.swing JEditorPane paste

List of usage examples for javax.swing JEditorPane paste

Introduction

In this page you can find the example usage for javax.swing JEditorPane paste.

Prototype

public void paste() 

Source Link

Document

Transfers the contents of the system clipboard into the associated text model.

Usage

From source file:net.java.sip.communicator.impl.gui.main.chat.ChatPanel.java

/**
 * Pastes the content of the clipboard to the write area.
 *///from ww w  . ja  v a  2 s .co m
public void paste() {
    JEditorPane editorPane = this.writeMessagePanel.getEditorPane();

    editorPane.paste();

    editorPane.requestFocus();
}