daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DataFlavor customFlavor = new DataFlavor(JTextField.class, "JTextField");
  2.    
  3. importData(TransferHandler.TransferSupport supp){
  4.      Transferable t = supp.getTransferable();
  5.      JTextField data = t.getTransferData(customFlavor);
  6. }
  7.    
  8. Transferable createTransferable(JComponent c) {
  9.     return new JTextField(); ???
  10. }
RAW Paste Data
Top