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

10
LINES

< > BotCompany Repo | #1014943 // enlargeFrameLeftAndBottom

JavaX fragment (include)

static void enlargeFrameLeftAndBottom(Component c, int howMuch) {
  enlargeFrameLeftAndBottom(c, howMuch, howMuch);
}

static void enlargeFrameLeftAndBottom(Component c, int x, int y) {
  Frame f = getAWTFrame(c);
  if (f == null) ret;
  Rectangle r = getBounds(f);
  setBounds(r.x-x, r.y, r.width+x, r.height+y, f);
}

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: 443 / 478
Version history: 4 change(s)
Referenced in: [show references]