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

35
LINES

< > BotCompany Repo | #1022684 // Dialog Kit Runner, packaged by #1022688

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

Download Jar. Libraryless. Click here for Pure Java version (12981L/98K).

!7

set flag hotwire_here.
sS osID = #1016478;
sbool standalone = true;

mainClassName DialogKit p-pcall {
  ret if standalone && javaXStandalone_init(args);
  
  Component c = selectJavaXVirtualSpace(vf<File> select);
  JButton useDefault = jbutton("Use default directory", r {
    thread { select(javaxVirtualDir("default")); }
    disposePIFrame(c);
  });
  addToWindow(c, withMargin(useDefault));
  focus(useDefault);
  hideConsole();
}

svoid select(File virtualHome) {
  showConsole();
  File mainJar = getMainJarLocation();
  File unpackDir = newFile(virtualHome, "unpacked");
  if (standalone)
    ret if standalone_start(null, "DialogKit instance", virtualHome, mainJar, unpackDir);
  else
    setUserDir(virtualHome);
  
  saveTextFile(stefansOS_backgroundFile(), #1101626);
  standalone_runOSWithInitialModules(osID, tlftj([[
    #1018866/SystemPrintLog
    #1019954/TaskBar_dev
    // TODO
  ]]));
}

Author comment

Began life as a copy of #1022612

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, hpgrupgrauku, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022684
Snippet name: Dialog Kit Runner, packaged by #1022688
Eternal ID of this version: #1022684/21
Text MD5: 788f69f24ec2fd84844e2391f3d7cab3
Transpilation MD5: 6dbce201380c650d4e49c250bad1108e
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-01 04:27:41
Source code size: 945 bytes / 35 lines
Pitched / IR pitched: No / No
Views / Downloads: 524 / 1698
Version history: 20 change(s)
Referenced in: #1022688 - Package Dialog Kit
#1022714 - Dialog Kit Runner (full JavaX version running code from the internet)
#1024623 - AutoJumpCut Runner (packaged by #1024624)