1 | sbool scrollAllTheWayDown_bruteForce = true; |
2 | |
3 | static <A extends JComponent> A scrollAllTheWayDown(A c) {
|
4 | if (c != null) swing {
|
5 | int h = c.getHeight()-1; |
6 | if (scrollAllTheWayDown_bruteForce) h = max(h, 100000); |
7 | c.scrollRectToVisible(new Rectangle(0, h, 1, 1)); |
8 | } |
9 | ret c; |
10 | } |
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: | 899 / 967 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |