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

8
LINES

< > BotCompany Repo | #1009809 - moveFrameAround

JavaX fragment (include)

static void moveFrameAround(Window w) {
  if (w == null) ret;
  pcall {
    Rect r = randomRect(w.getWidth(), w.getHeight(), toRect(maxWindowBounds()));
    if (r != null)
      w.setLocation(r.x, r.y);
  }
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1009809
Snippet name: moveFrameAround
Eternal ID of this version: #1009809/3
Text MD5: c2aa1469d34b03d76189fe27326e99c7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-18 02:03:13
Source code size: 215 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 259 / 263
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1009809 & http://1009809.tinybrain.de