1 | static Component jMinHeight(Swingable c, int h) {
|
2 | ret jMinHeight(wrap(c), h); |
3 | } |
4 | |
5 | static Component jMinHeight(int h, Swingable c) {
|
6 | ret jMinHeight(wrap(c), h); |
7 | } |
8 | |
9 | static <A extends Component> A jMinHeight(A c, int h) {
|
10 | ret jMinHeight(h, c); |
11 | } |
12 | |
13 | static <A extends Component> A jMinHeight(int h, A c) {
|
14 | Dimension size = c.getMinimumSize(); |
15 | c.setMinimumSize(new Dimension(size.width, max(h, size.height))); |
16 | ret jPreferHeight(h, c); |
17 | } |
Began life as a copy of #1004496
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: | #1004934 |
| Snippet name: | jMinHeight |
| Eternal ID of this version: | #1004934/6 |
| Text MD5: | 620d18f198143fe224892943ca39c3aa |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-12-16 07:29:10 |
| Source code size: | 456 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 887 / 937 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |