static void enlargeFrameLeftAndRight(Component c, int x) { Frame f = getAWTFrame(c); if (f == null) ret; Rectangle r = getBounds(f); setBounds(r.x-x, r.y, r.width+x*2, r.height, f); }
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: | 342 / 358 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |