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

12
LINES

< > BotCompany Repo | #1005612 // Let user mark a spot on the screen

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1363L/9K/38K).

!752

p {
  final JWindow window = showAnimationInTopRightCorner("#1005611", "Please click somewhere");
  
  // TODO: onClosing(window, "trackOneClick_cancel");
  
  trackOneClick(voidfunc(Point p) {
    window.dispose();
    showAnimation("#1005611", "You clicked at " + p.x + "/" + p.y, 3);
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005612
Snippet name: Let user mark a spot on the screen
Eternal ID of this version: #1005612/1
Text MD5: 652f9515c616ed84c36525f9beb70d42
Transpilation MD5: 9fe17f7e32eb676dc3067e5eada44ff1
Author: stefan
Category: javax / gui / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-29 17:02:59
Source code size: 311 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 486 / 560
Referenced in: [show references]