Search in sources :

Example 16 with Transferable

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

the class CreateMarketOrder method jButton3ActionPerformed.

//GEN-LAST:event_jComboBox2ActionPerformed1
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);
            jTextField3.setText(tempString);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Transferable(java.awt.datatransfer.Transferable)

Example 17 with Transferable

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

the class CreateMarketOrder method jButton6ActionPerformed.

//GEN-LAST:event_jComboBox5ActionPerformed1
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 18 with Transferable

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

the class DepositCashDialog 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 19 with Transferable

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

the class ExportCashToDialog 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);
            jTextField1.setText(tempString);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Transferable(java.awt.datatransfer.Transferable)

Example 20 with Transferable

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

the class ImportCashPurse 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)

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