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

11
LINES

< > BotCompany Repo | #1019687 // checkMaxWindowBoundsBug - a very annoying JDK bug happening with Linux + multiple monitors

JavaX fragment (include)

1  
svoid checkMaxWindowBoundsBug() {
2  
  if (headless()) ret;
3  
  try {
4  
    maxWindowBounds();
5  
  } catch print e {
6  
    if (contains(e.getMessage(), "Window must not be zero")) {
7  
      infoBox_noHide(programLog("The very annoying JDK bug has occured :("));
8  
      restartInAndSleep(5.0);
9  
    }
10  
  }
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 11 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019687
Snippet name: checkMaxWindowBoundsBug - a very annoying JDK bug happening with Linux + multiple monitors
Eternal ID of this version: #1019687/4
Text MD5: cda68f80d5761d366d373cbcd78454d8
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-14 16:41:46
Source code size: 300 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 297 / 331
Version history: 3 change(s)
Referenced in: [show references]