Libraryless. Click here for Pure Java version (2384L/17K/57K).
!752 p { substance(); swingAndWait(r { JFrame frame = showFrame(); frame.setBounds(0, 0, 400, 400); }); Point a = new Point(50, 10), b = new Point(150, 10); final new Robot robot; sleep(1000); robot.mouseMove(a.x, a.y); final int button = InputEvent.BUTTON1_DOWN_MASK; robot.mousePress(button); sleep(500); robot.mouseMove(b.x, b.y); robot.mouseRelease(button); }
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: | 791 / 975 |
| Referenced in: | [show references] |