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

6
LINES

< > BotCompany Repo | #1036085 // convertPointToScreen

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (144L/1K).

static Pt convertPointToScreen(Pt p, Component c) {
  if (c == null) ret p;
  Point p2 = toPoint(p);
  SwingUtilities.convertPointToScreen(p2, c);
  ret toPt(p2);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036085
Snippet name: convertPointToScreen
Eternal ID of this version: #1036085/2
Text MD5: 534263289f6a9565257920c15d1d29e3
Transpilation MD5: 18d513a6f61ca4c7e6d42e5e9356ad2e
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-07 04:45:09
Source code size: 169 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 62 / 92
Version history: 1 change(s)
Referenced in: [show references]