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

6
LINES

< > BotCompany Repo | #1014945 // enlargeFrameLeftAndRight

JavaX fragment (include)

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

Author comment

Began life as a copy of #1014943

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: #1014945
Snippet name: enlargeFrameLeftAndRight
Eternal ID of this version: #1014945/1
Text MD5: f07241a538ecfc494fb4dd46922e8b33
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 17:09:31
Source code size: 196 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 355 / 374
Referenced in: [show references]