static int moveToBottomRightCorner_insetX = 10;
static int moveToBottomRightCorner_insetY = 10;
static <A extends Component> A moveToBottomRightCorner(A c) {
ret moveToBottomRightCorner(c, moveToBottomRightCorner_insetX, moveToBottomRightCorner_insetY);
}
static <A extends Component> A moveToBottomRightCorner(A c, final int insetX, final int insetY) {
final Window w = getWindow(c);
if (w != null) swing {
Rectangle r = maxWindowBounds();
w.setLocation(r.x+r.width-w.getWidth()-insetX, r.y+r.height-w.getHeight()-insetY);
}
ret c;
}
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: | 966 / 975 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |