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

9
LINES

< > BotCompany Repo | #1019178 // getFilesFromClipboard

JavaX fragment (include)

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;
}

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: 370 / 401
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1022903 - fileFromClipboard - or null