Uses 911K of libraries. Click here for Pure Java version (11862L/64K).
!7 cmodule SystemVersion > DynTextArea { Int comp, compJavaX; start-thread { setText(padWithEmptyLines(centerPad("Checking...", 50), 10)); comp = compareTranspilationDateWithServer(creator()); try { compJavaX = compareTranspilationDateWithServer(javax()); } catch e { printException(e); compJavaX = -1; } setText(linesLL( "Computer ID: " + computerID(), "JavaX version: " + javaxVersion(), " On server: " + (compJavaX == null ? "Unknown" : compJavaX == 0 ? "SAME" : compJavaX < 0 ? "NEWER" : "OLDER (?)"), "Stefan's OS version: " + formatTranspilationDate(creator()), " On server: " + (comp == null ? "Unknown" : comp == 0 ? "SAME" : comp < 0 ? "NEWER" : "OLDER (?)"), "System identified as: " + linuxWindowsMac(), "Java version: " + javaVersion(), "Java directory: " + envJavaHome(), "Java VM arguments: " + joinWithSpace(vmArguments()), ); } visual centerAndSouth(super, withMargin(jcenteredbuttons("Upgrade JavaX", disableAllButtonsWhileCalcing(r { setText("Upgrading JavaX..."); runDependent(#1001639); dm_restartOS() }), "Upgrade Stefan's OS", r dm_restartOS, jPopDownButton_noText( "Show Java VM options", rThread { showWrappedText("This Java VM's options", joinWithSpace(vmArgs())) }, "Set default Java VM options...", rThread { inputText("Default Java VM options", javaxDefaultVMArgs(), voidfunc(S s) { setDefaultVMArgs(s); if (confirmYesNo("Restart " + dm_osName() + " to use new options?")) dm_restartOS(); }); } )))); }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, hpgrupgrauku, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1016442 |
Snippet name: | System Version |
Eternal ID of this version: | #1016442/27 |
Text MD5: | d5d0ed1393f940125954a4cc1820cf4d |
Transpilation MD5: | 005c30af37cea256416e113289a49f63 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-23 10:37:39 |
Source code size: | 1696 bytes / 46 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 51395 |
Version history: | 26 change(s) |
Referenced in: | #1016478 - Stefan's OS v6 #1022729 - Stefan's OS v6 - copy for transpiler test #1024932 - Stefan's OS v7 [LIVE] #1031320 - Stefan's OS v7 [backup before allowing dynamic main classes] |