svoid stackWindowsUpwardsInBottomRightCorner(L<? extends JComponent> l) { L<Window> windows = map getWindow(l); if (empty(windows)) ret; moveToBottomRightCorner(first(windows)); int yGap = 20; for (Pair<Window> p : listToOverlappingPairs(windows)) { Rect ra = toRect(getBounds(p.a)); Rect rb = toRect(getBounds(p.b)); setBounds(p.b, ra.x2()-rb.w, ra.y-yGap-rb.h, rb.w, rb.h); } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015661 |
| Snippet name: | stackWindowsUpwardsInBottomRightCorner |
| Eternal ID of this version: | #1015661/1 |
| Text MD5: | d94ee7ccfc305a8507f35ae72fbcad04 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-21 00:15:03 |
| Source code size: | 413 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 625 / 678 |
| Referenced in: | [show references] |