Libraryless. Click here for Pure Java version (9937L/55K).
1 | svoid setEnclosingViewPosition(Component c, Pt etc p) {
|
2 | setEnclosingViewPosition(c, toPoint(p)); |
3 | } |
4 | |
5 | svoid setEnclosingViewPosition(Component c, Point p) {
|
6 | if (p == null) ret; |
7 | JScrollPane sp = enclosingScrollPane(c); |
8 | if (sp != null) swing { sp.getViewport().setViewPosition(p); }
|
9 | } |
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: | 622 / 769 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |