Search in sources :

Example 21 with Transferable

use of java.awt.datatransfer.Transferable in project otapij by FellowTraveler.

the class ProposePaymentDialog method jButton6ActionPerformed.

//GEN-LAST:event_jButton5ActionPerformed
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton6ActionPerformed
    Transferable clipboardContent = getToolkit().getSystemClipboard().getContents(this);
    if ((clipboardContent != null) && (clipboardContent.isDataFlavorSupported(DataFlavor.stringFlavor))) {
        try {
            String tempString;
            tempString = (String) clipboardContent.getTransferData(DataFlavor.stringFlavor);
            jTextField4.setText(tempString);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Transferable(java.awt.datatransfer.Transferable)

Example 22 with Transferable

use of java.awt.datatransfer.Transferable in project otapij by FellowTraveler.

the class ProposePaymentDialog method jButton5ActionPerformed.

//GEN-LAST:event_jButton3ActionPerformed
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton5ActionPerformed
    Transferable clipboardContent = getToolkit().getSystemClipboard().getContents(this);
    if ((clipboardContent != null) && (clipboardContent.isDataFlavorSupported(DataFlavor.stringFlavor))) {
        try {
            String tempString;
            tempString = (String) clipboardContent.getTransferData(DataFlavor.stringFlavor);
            jTextField3.setText(tempString);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Transferable(java.awt.datatransfer.Transferable)

Example 23 with Transferable

use of java.awt.datatransfer.Transferable in project otapij by FellowTraveler.

the class ProposePaymentDialog method jButton3ActionPerformed.

//GEN-LAST:event_jButton4ActionPerformed
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton3ActionPerformed
    Transferable clipboardContent = getToolkit().getSystemClipboard().getContents(this);
    if ((clipboardContent != null) && (clipboardContent.isDataFlavorSupported(DataFlavor.stringFlavor))) {
        try {
            String tempString;
            tempString = (String) clipboardContent.getTransferData(DataFlavor.stringFlavor);
            jTextField1.setText(tempString);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Transferable(java.awt.datatransfer.Transferable)

Example 24 with Transferable

use of java.awt.datatransfer.Transferable in project otapij by FellowTraveler.

the class SendMessageDialog method jButton3ActionPerformed.

//GEN-LAST:event_jComboBox2ActionPerformed
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton3ActionPerformed
    Transferable clipboardContent = getToolkit().getSystemClipboard().getContents(this);
    if ((clipboardContent != null) && (clipboardContent.isDataFlavorSupported(DataFlavor.stringFlavor))) {
        try {
            String tempString;
            tempString = (String) clipboardContent.getTransferData(DataFlavor.stringFlavor);
            jTextField1.setText(tempString);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Transferable(java.awt.datatransfer.Transferable)

Example 25 with Transferable

use of java.awt.datatransfer.Transferable in project otapij by FellowTraveler.

the class SendMessageDialog method jButton4ActionPerformed.

//GEN-LAST:event_jButton3ActionPerformed
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton4ActionPerformed
    Transferable clipboardContent = getToolkit().getSystemClipboard().getContents(this);
    if ((clipboardContent != null) && (clipboardContent.isDataFlavorSupported(DataFlavor.stringFlavor))) {
        try {
            String tempString;
            tempString = (String) clipboardContent.getTransferData(DataFlavor.stringFlavor);
            jTextField2.setText(tempString);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Transferable(java.awt.datatransfer.Transferable)

Aggregations

Transferable (java.awt.datatransfer.Transferable)89 UnsupportedFlavorException (java.awt.datatransfer.UnsupportedFlavorException)28 IOException (java.io.IOException)27 List (java.util.List)15 ArrayList (java.util.ArrayList)13 Clipboard (java.awt.datatransfer.Clipboard)11 DataFlavor (java.awt.datatransfer.DataFlavor)11 File (java.io.File)10 Point (java.awt.Point)8 StringSelection (java.awt.datatransfer.StringSelection)5 Project (com.intellij.openapi.project.Project)4 ClipboardOwner (java.awt.datatransfer.ClipboardOwner)4 TransferHandler (javax.swing.TransferHandler)4 Editor (com.intellij.openapi.editor.Editor)3 ActionEvent (java.awt.event.ActionEvent)3 JComponent (javax.swing.JComponent)3 TreePath (javax.swing.tree.TreePath)3 DataContext (com.intellij.openapi.actionSystem.DataContext)2 PsiElement (com.intellij.psi.PsiElement)2 PsiFile (com.intellij.psi.PsiFile)2