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();
}
}
}
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();
}
}
}
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();
}
}
}
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();
}
}
}
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();
}
}
}
Aggregations