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

10
LINES

< > BotCompany Repo | #1014943 // enlargeFrameLeftAndBottom

JavaX fragment (include)

1  
static void enlargeFrameLeftAndBottom(Component c, int howMuch) {
2  
  enlargeFrameLeftAndBottom(c, howMuch, howMuch);
3  
}
4  
5  
static void enlargeFrameLeftAndBottom(Component c, int x, int y) {
6  
  Frame f = getAWTFrame(c);
7  
  if (f == null) ret;
8  
  Rectangle r = getBounds(f);
9  
  setBounds(r.x-x, r.y, r.width+x, r.height+y, f);
10  
}

Author comment

Began life as a copy of #1006355

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014943
Snippet name: enlargeFrameLeftAndBottom
Eternal ID of this version: #1014943/5
Text MD5: 0be1f46df939fcf433a1d5557c37061c
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-13 21:42:54
Source code size: 327 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 459 / 497
Version history: 4 change(s)
Referenced in: [show references]