static JScrollPane enclosingScrollPane(Component c) { while (c.getParent() != null && !(c.getParent() instanceof JViewport) && c.getParent().getComponentCount() == 1) c = c.getParent(); // for jscroll_center if (!(c.getParent() instanceof JViewport)) null; c = c.getParent().getParent(); ret c instanceof JScrollPane ? (JScrollPane) c : null; }
Began life as a copy of #1004329
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004534 |
| Snippet name: | enclosingScrollPane |
| Eternal ID of this version: | #1004534/4 |
| Text MD5: | 2d2b69fbd688f085c8fe7c18994f104a |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-03 03:25:06 |
| Source code size: | 357 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 895 / 922 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |