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)

svoid checkMaxWindowBoundsBug() {
  if (headless()) ret;
  try {
    maxWindowBounds();
  } catch print e {
    if (contains(e.getMessage(), "Window must not be zero")) {
      infoBox_noHide(programLog("The very annoying JDK bug has occured :("));
      restartInAndSleep(5.0);
    }
  }
}

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: 401 / 434
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)