static int moveToTopRightCorner_inset = 20; static <A extends Component> A moveToTopRightCorner(A a) { ret moveToTopRightCorner(moveToTopRightCorner_inset, moveToTopRightCorner_inset, a); } static <A extends Component> A moveToTopRightCorner(int insetX, int insetY, A a) { swing { Window w = getWindow(a); if (w != null) w.setLocation(getScreenSize().width-w.getWidth()-insetX, insetY); } 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: | #1033889 |
Snippet name: | moveToTopRightCorner backup |
Eternal ID of this version: | #1033889/1 |
Text MD5: | 5cb62809e6bfddb5864a664ff65667c6 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-08 23:38:05 |
Source code size: | 436 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 126 / 150 |
Referenced in: | [show references] |