Transpiled version (2915L) is out of date.
1 | static <A extends Component> A jMinHeight_pure(int h, A c) {
|
2 | if (c != null) swing {
|
3 | Dimension size = c.getMinimumSize(); |
4 | c.setMinimumSize(new Dimension(size.width, h)); |
5 | } |
6 | ret c; |
7 | } |
8 | |
9 | static <A extends Component> A jMinHeight_pure(A c, int h) {
|
10 | ret jMinHeight_pure(h, c); |
11 | } |
Began life as a copy of #1009270
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031154 |
| Snippet name: | jMinHeight_pure - set minimum height of Swing component (don't set preferred height) |
| Eternal ID of this version: | #1031154/5 |
| Text MD5: | dd343220cd395f6d63907afef255cd97 |
| 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:24 |
| Source code size: | 296 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 416 / 520 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |