import java.awt.datatransfer.Transferable; import java.awt.datatransfer.DataFlavor; static L<File> getFilesFromClipboard() ctex { Transferable transferable = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null); if (transferable != null && transferable.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) ret (L<File>) transferable.getTransferData(DataFlavor.javaFileListFlavor); null; }
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: | 368 / 399 |
Version history: | 3 change(s) |
Referenced in: | [show references] |