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