Example usage for javax.swing JEditorPane copy

List of usage examples for javax.swing JEditorPane copy

Introduction

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

Prototype

public void copy() 

Source Link

Document

Transfers the currently selected range in the associated text model to the system clipboard, leaving the contents in the text model.

Usage

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

/**
 * Copies the selected write panel content to the clipboard.
 *//*from  w  w  w  .j  a  va  2  s .c  o  m*/
public void copyWriteArea() {
    JEditorPane editorPane = this.writeMessagePanel.getEditorPane();

    editorPane.copy();
}