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

7
LINES

< > BotCompany Repo | #1019177 // copyFileToClipboard (returns the argument)

JavaX fragment (include)

static File copyFileToClipboard(File f) {
  if (f == null) null;
  Toolkit.getDefaultToolkit().getSystemClipboard().setContents(
    new FileTransferable(f), null);
  vmBus_send('newClipboardContents, f);
  ret f;
}

Author comment

Began life as a copy of #1005363

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: #1019177
Snippet name: copyFileToClipboard (returns the argument)
Eternal ID of this version: #1019177/1
Text MD5: 12f0d67390d7bc3744067a1ed4831b87
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:43:00
Source code size: 221 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 343 / 391
Referenced in: [show references]