Example usage for javax.swing.text JTextComponent paste

List of usage examples for javax.swing.text JTextComponent paste

Introduction

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

Prototype

public void paste() 

Source Link

Document

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

Usage

From source file:Main.java

static void dndPaste(final Component component) {
    final JTextComponent textComponent = getTextComponent(component);
    if (textComponent != null) {
        textComponent.paste();
    }//w  ww  . ja  v a  2s . c  om
}