Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1006779 // moveToTopLeftCorner

JavaX fragment (include)

static int moveToTopLeftCorner_inset = 20;

static <A extends Component> A moveToTopLeftCorner(A c) {
  Window w = getWindow(c);
  if (w != null)
    w.setLocation(moveToTopLeftCorner_inset, moveToTopLeftCorner_inset);
  ret c;
}

Author comment

Began life as a copy of #1001432

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: #1006779
Snippet name: moveToTopLeftCorner
Eternal ID of this version: #1006779/2
Text MD5: 0111f67e449b74629dedb605581dd5bb
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-05 20:38:31
Source code size: 238 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 504 / 525
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009096 - moveToBottomLeftCorner
#1015077 - moveToTopCenter