1 | static <A extends Component> A packInternalFrameVertically(A c) { |
2 | ret packInternalFrameVertically(-1, c); |
3 | } |
4 | |
5 | static <A extends Component> A packInternalFrameVertically(int width, A c) { |
6 | final JInternalFrame win = getInternalFrame(c); |
7 | if (win == null) ret c; |
8 | final int w = width < 0 ? win.getWidth() : width; |
9 | swing { |
10 | win.pack(); |
11 | win.setSize(w, win.getHeight()); |
12 | fixInternalFrame(win); |
13 | } |
14 | ret c; |
15 | } |
Began life as a copy of #1015218
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: | #1015796 |
Snippet name: | packInternalFrameVertically - keeps width |
Eternal ID of this version: | #1015796/4 |
Text MD5: | 804ad673e0f83b185e090b8fbc449836 |
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:48:29 |
Source code size: | 434 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 362 / 396 |
Version history: | 3 change(s) |
Referenced in: | [show references] |