Libraryless. Click here for Pure Java version (4221L/24K).
static <A extends Component> A moveToTopRightCornerWithSize(int w, int h, A a) { swing { var inset = screenTopRightCornerOverlayInset(); Window win = getWindow(a); if (win != null) win.setBounds(getScreenSize().width-inset-w, inset, w, h); } ret a; }
Began life as a copy of #1001432
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033197 |
Snippet name: | moveToTopRightCornerWithSize |
Eternal ID of this version: | #1033197/4 |
Text MD5: | 53304e563f87e57ac75bd87eaafac2b6 |
Transpilation MD5: | a53a41a55dbd28d8ef0e946fd0ad2d3a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-16 02:19:04 |
Source code size: | 284 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 190 / 254 |
Version history: | 3 change(s) |
Referenced in: | [show references] |