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

9
LINES

< > BotCompany Repo | #1004439 // minFrameWidth

JavaX fragment (include)

1  
static JFrame minFrameWidth(JFrame frame, int w) {
2  
  if (frame != null && frame.getWidth() < w)
3  
    frame.setSize(w, frame.getHeight());
4  
  ret frame;
5  
}
6  
7  
static JFrame minFrameWidth(int w, JFrame frame) {
8  
  ret minFrameWidth(frame, w);
9  
}

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: 576 / 579
Version history: 2 change(s)
Referenced in: [show references]