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

10
LINES

< > BotCompany Repo | #1014836 // Test putting windows outside of screen

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (6296L/41K).

!7

p {
  Rectangle r = maxWindowBounds();
  int w = 400, h = 300;
  setWindowBounds(r.x+r.width+100, r.y, w, h, showFrame("Frame 1"));
  setWindowBounds(r.x-w-100, r.y, w, h, showFrame("Frame 2"));
  setWindowBounds(r.x, r.y+r.height+100, w, h, showFrame("Frame 3"));
  setWindowBounds(r.x, r.y-h-100, w, h, showFrame("Frame 4"));
}

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: #1014836
Snippet name: Test putting windows outside of screen
Eternal ID of this version: #1014836/1
Text MD5: 427a10c9f6fad896a97c2e1aefac5247
Transpilation MD5: 7887917be9c31547298977c44144c646
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-04 11:55:29
Source code size: 342 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 484 / 1005
Referenced in: [show references]