static int moveToBottomCenter_inset = 20; static void moveToBottomCenter(Component c) { Window w = getWindow(c); if (w != null) { Rectangle area = maxWindowBounds(); w.setLocation(area.x+(area.width-w.getWidth())/2, area.y+area.height-moveToBottomCenter_inset-w.getHeight()); } }
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: | 419 / 448 |
Referenced in: | [show references] |