Search in sources :

Example 11 with Transferable

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

the class ImportNYMDialog method jButton2ActionPerformed.

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

Example 12 with Transferable

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

the class OTWriteCheque method jButton3ActionPerformed.

//GEN-LAST:event_jComboBox1ActionPerformed
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 13 with Transferable

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

the class CashPurseDepositDialog method jButton2ActionPerformed.

//GEN-LAST:event_jComboBox1ActionPerformed1
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton2ActionPerformed
    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 14 with Transferable

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

the class CreateMarketOrder method jButton2ActionPerformed.

// </editor-fold>//GEN-END:initComponents
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
    //GEN-FIRST:event_jButton2ActionPerformed
    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 15 with Transferable

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

the class CreateMarketOrder method jButton5ActionPerformed.

//GEN-LAST:event_jComboBox4ActionPerformed1
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);
            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