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

4
LINES

< > BotCompany Repo | #1024178 // enclosingViewPosition

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

Libraryless. Click here for Pure Java version (2018L/13K).

static Point enclosingViewPosition(Component c) {
  JScrollPane sp = enclosingScrollPane(c);
  ret sp == null ? null : swing(func -> Point { sp.getViewport().getViewPosition() });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024178
Snippet name: enclosingViewPosition
Eternal ID of this version: #1024178/3
Text MD5: 416e5fc5cf7cba333a8ea55505e07ff3
Transpilation MD5: 4a227a6e0d5222e83a350e89cb5ac8f7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-24 15:02:24
Source code size: 184 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 283
Version history: 2 change(s)
Referenced in: [show references]