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

9
LINES

< > BotCompany Repo | #1004439 // minFrameWidth

JavaX fragment (include)

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

static JFrame minFrameWidth(int w, JFrame frame) {
  ret minFrameWidth(frame, w);
}

Author comment

Began life as a copy of #1003461

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: #1004439
Snippet name: minFrameWidth
Eternal ID of this version: #1004439/3
Text MD5: a430ab32d18fe3312c281621fe93c0eb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-25 15:40:18
Source code size: 246 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 577 / 579
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010294 - frameMinWidth - synonym of minFrameWidth
#1016365 - minInternalFrameWidth
#1025070 - minFrameHeight
#1033896 - minWindowWidth