Libraryless. Click here for Pure Java version (2384L/17K/57K).
1 | !752 |
2 | |
3 | p { |
4 | substance(); |
5 | swingAndWait(r { |
6 | JFrame frame = showFrame(); |
7 | frame.setBounds(0, 0, 400, 400); |
8 | }); |
9 | |
10 | Point a = new Point(50, 10), b = new Point(150, 10); |
11 | final new Robot robot; |
12 | sleep(1000); |
13 | robot.mouseMove(a.x, a.y); |
14 | final int button = InputEvent.BUTTON1_DOWN_MASK; |
15 | robot.mousePress(button); |
16 | sleep(500); |
17 | robot.mouseMove(b.x, b.y); |
18 | robot.mouseRelease(button); |
19 | } |
Began life as a copy of #1005573
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, etmzoiygucik, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005574 |
Snippet name: | Test dragging JFrame with Robot with undecorated (L&F-decorated) frame [works] |
Eternal ID of this version: | #1005574/1 |
Text MD5: | d610846b6a9371b293d3208b6f3da946 |
Transpilation MD5: | b965928778ebab384d006c6c5dcb500b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-28 14:56:13 |
Source code size: | 417 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 715 |
Referenced in: | [show references] |