1 | static int moveToBottomCenter_inset = 20; |
2 | |
3 | static void moveToBottomCenter(Component c) {
|
4 | Window w = getWindow(c); |
5 | if (w != null) {
|
6 | Rectangle area = maxWindowBounds(); |
7 | w.setLocation(area.x+(area.width-w.getWidth())/2, |
8 | area.y+area.height-moveToBottomCenter_inset-w.getHeight()); |
9 | } |
10 | } |
Began life as a copy of #1009096
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: | #1009745 |
| Snippet name: | moveToBottomCenter |
| Eternal ID of this version: | #1009745/1 |
| Text MD5: | 4fe339fae2d959cac22faf2b639035de |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-08-15 20:18:33 |
| Source code size: | 311 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 652 / 679 |
| Referenced in: | [show references] |