1 | static int moveToBottomRightCorner_insetX = 10; |
2 | static int moveToBottomRightCorner_insetY = 10; |
3 | |
4 | static <A extends Component> A moveToBottomRightCorner(A c) { |
5 | ret moveToBottomRightCorner(c, moveToBottomRightCorner_insetX, moveToBottomRightCorner_insetY); |
6 | } |
7 | |
8 | static <A extends Component> A moveToBottomRightCorner(A c, final int insetX, final int insetY) { |
9 | final Window w = getWindow(c); |
10 | if (w != null) swing { |
11 | Rectangle r = maxWindowBounds(); |
12 | w.setLocation(r.x+r.width-w.getWidth()-insetX, r.y+r.height-w.getHeight()-insetY); |
13 | } |
14 | ret c; |
15 | } |
Began life as a copy of #1001432
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006233 |
Snippet name: | moveToBottomRightCorner |
Eternal ID of this version: | #1006233/5 |
Text MD5: | b587e7e26ffcebc3242595731e0f8bef |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-18 11:43:00 |
Source code size: | 570 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 470 / 521 |
Version history: | 4 change(s) |
Referenced in: | [show references] |