Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1019178 // getFilesFromClipboard

JavaX fragment (include)

1  
import java.awt.datatransfer.Transferable;
2  
import java.awt.datatransfer.DataFlavor;
3  
4  
static L<File> getFilesFromClipboard() ctex {
5  
  Transferable transferable = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
6  
  if (transferable != null && transferable.isDataFlavorSupported(DataFlavor.javaFileListFlavor))
7  
    ret (L<File>) transferable.getTransferData(DataFlavor.javaFileListFlavor);
8  
  null;
9  
}

Author comment

Began life as a copy of #1006100

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019178
Snippet name: getFilesFromClipboard
Eternal ID of this version: #1019178/4
Text MD5: b187178edb20219c3b22f293d7588f03
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-27 01:54:45
Source code size: 422 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 369 / 401
Version history: 3 change(s)
Referenced in: [show references]