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

3
LINES

< > BotCompany Repo | #1034633 // ptInComponentFromEvent

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

Libraryless. Click here for Pure Java version (5188L/29K).

static PtInComponent ptInComponentFromEvent(MouseEvent evt) {
  ret new PtInComponent(evt.getComponent(), pt(evt.getX(), evt.getY()));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034633
Snippet name: ptInComponentFromEvent
Eternal ID of this version: #1034633/1
Text MD5: 39b8e05699920a9c31caccf5a174df13
Transpilation MD5: 4f291d6d2bb7ac37c51f543095f227e6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-24 20:33:53
Source code size: 138 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 263
Referenced in: [show references]