Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1025070 // minFrameHeight

JavaX fragment (include)

static JFrame minFrameHeight(JFrame frame, int h) {
  if (frame != null && frame.getHeight() < h)
    frame.setSize(frame.getWidth(), h);
  ret frame;
}

static JFrame minFrameHeight(int h, JFrame frame) {
  ret minFrameHeight(frame, h);
}

Author comment

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: 127 / 148
Referenced in: [show references]