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 | } |
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: | 341 / 358 |
Referenced in: | [show references] |