sbool scrollAllTheWayDown_bruteForce = true; static <A extends JComponent> A scrollAllTheWayDown(A c) { if (c != null) swing { int h = c.getHeight()-1; if (scrollAllTheWayDown_bruteForce) h = max(h, 100000); c.scrollRectToVisible(new Rectangle(0, h, 1, 1)); } ret c; }
Began life as a copy of #1015155
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1016721 |
| Snippet name: | scrollAllTheWayDown |
| Eternal ID of this version: | #1016721/7 |
| Text MD5: | 8eb99d406206a25d5d862b6cfebfc16d |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-08-28 14:07:30 |
| Source code size: | 296 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 900 / 967 |
| Version history: | 6 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |