scope packInternalFrameInTopRightCorner. static int #marginX = 20, #marginY = 20; static <A extends Component> A packInternalFrameInTopRightCorner(final A c) { final JInternalFrame win = getInternalFrame(c); if (win == null || getParent(win) == null) ret c; swing { win.pack(); int w = getParent(win).getWidth(); win.setLocation(w-win.getWidth()-packInternalFrameInTopRightCorner_marginX, marginY); fixInternalFrame(win); } ret c; } end scope
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016239 |
| Snippet name: | packInternalFrameInTopRightCorner |
| Eternal ID of this version: | #1016239/4 |
| Text MD5: | 88f7b3ffc92f54220f43fefb8c0a8a61 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-11 15:53:19 |
| Source code size: | 487 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 901 / 907 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |