1 | static <A extends Component> A jPreferHeight(int h, A c) {
|
2 | Dimension size = c.getPreferredSize(); |
3 | c.setPreferredSize(new Dimension(size.width, max(h, size.height))); |
4 | ret c; |
5 | } |
Began life as a copy of #1004934
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004935 |
| Snippet name: | jPreferHeight |
| Eternal ID of this version: | #1004935/4 |
| Text MD5: | bf563fea684511ee563ee4c2366e023c |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-11 18:19:09 |
| Source code size: | 184 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 778 / 845 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |