Transpiled version (2915L) is out of date.
1 | static <A extends Component> A jMinWidth_pure(int w, A c) { |
2 | if (c != null) swing { |
3 | Dimension size = c.getMinimumSize(); |
4 | c.setMinimumSize(new Dimension(w, size.height)); |
5 | } |
6 | ret c; |
7 | } |
8 | |
9 | static <A extends Component> A jMinWidth_pure(A c, int w) { |
10 | ret jMinWidth_pure(w, c); |
11 | } |
Began life as a copy of #1005391
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: | #1009270 |
Snippet name: | jMinWidth_pure - set minimum width of Swing component (don't set preferred width) |
Eternal ID of this version: | #1009270/7 |
Text MD5: | cc758af0a3c9fd76c28439499a1c34cd |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-06-27 00:35:14 |
Source code size: | 294 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 629 / 670 |
Version history: | 6 change(s) |
Referenced in: | [show references] |