Libraryless. Click here for Pure Java version (4221L/24K).
1 | static <A extends Component> A moveToTopRightCornerWithSize(int w, int h, A a) { |
2 | swing { |
3 | var inset = screenTopRightCornerOverlayInset(); |
4 | Window win = getWindow(a); |
5 | if (win != null) |
6 | win.setBounds(getScreenSize().width-inset-w, inset, w, h); |
7 | } |
8 | ret a; |
9 | } |
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: | 192 / 258 |
Version history: | 3 change(s) |
Referenced in: | [show references] |