1 | static JFrame minFrameHeight(JFrame frame, int h) { |
2 | if (frame != null && frame.getHeight() < h) |
3 | frame.setSize(frame.getWidth(), h); |
4 | ret frame; |
5 | } |
6 | |
7 | static JFrame minFrameHeight(int h, JFrame frame) { |
8 | ret minFrameHeight(frame, h); |
9 | } |
Began life as a copy of #1004439
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025070 |
Snippet name: | minFrameHeight |
Eternal ID of this version: | #1025070/1 |
Text MD5: | b61171ca0564d2e1086824e6b90ccae1 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-05 12:17:42 |
Source code size: | 249 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 193 / 220 |
Referenced in: | [show references] |