Download Jar. Libraryless. Click here for Pure Java version (6333L/42K).
1 | !7 |
2 | |
3 | p {
|
4 | Rectangle r = maxWindowBounds(); |
5 | int w = 400, h = 300; |
6 | setWindowBounds(r.x+r.width+100, r.y, w, h, showFrame("Frame 1"));
|
7 | setWindowBounds(r.x-w-100, r.y+100, w, h, showFrame("Frame 2"));
|
8 | setWindowBounds(r.x, r.y+r.height+100, w, h, showFrame("Frame 3"));
|
9 | setWindowBounds(r.x, r.y-h-100, w, h, showFrame("Frame 4"));
|
10 | fixAllWindowPositions(); |
11 | } |
Began life as a copy of #1014836
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: | #1014841 |
| Snippet name: | Test putting windows outside of screen & fixing them (OK) |
| Eternal ID of this version: | #1014841/4 |
| Text MD5: | b592fdc6e85f0e817df523d11a9eb450 |
| Transpilation MD5: | b9387eb2fc0fab5ff5831d8a9b637d3f |
| 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 15:12:45 |
| Source code size: | 374 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 600 / 1464 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |