Libraryless. Click here for Pure Java version (9937L/55K).
svoid setEnclosingViewPosition(Component c, Pt etc p) { setEnclosingViewPosition(c, toPoint(p)); } svoid setEnclosingViewPosition(Component c, Point p) { if (p == null) ret; JScrollPane sp = enclosingScrollPane(c); if (sp != null) swing { sp.getViewport().setViewPosition(p); } }
Began life as a copy of #1024178
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: | #1024179 |
Snippet name: | setEnclosingViewPosition - scroll to an exact position |
Eternal ID of this version: | #1024179/5 |
Text MD5: | 17635249905029209ad996d41cecf590 |
Transpilation MD5: | 1dbf1bbb8ba9ebd6b93ca0dd1e8d4f81 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-17 17:04:10 |
Source code size: | 296 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 413 / 543 |
Version history: | 4 change(s) |
Referenced in: | [show references] |