Transpiled version (5154L) is out of date.
static <A extends Component> A jPreferWidth(int w, A c) { swing { Dimension size = c.getPreferredSize(); c.setPreferredSize(new Dimension(/*max(w, size.width) ??? */w, size.height)); } ret c; } static <A extends Component> A jPreferWidth(A c, int w) { ret jPreferWidth(w, c); }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004496 |
Snippet name: | jPreferWidth |
Eternal ID of this version: | #1004496/5 |
Text MD5: | c7243948c3943cad80a0f4404c6f7186 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-29 22:44:47 |
Source code size: | 300 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 613 / 663 |
Version history: | 4 change(s) |
Referenced in: | #1004934 - jMinHeight #1006654 - Standard functions list 2 (LIVE, continuation of #761) |