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).

1  
!7
2  
3  
set flag hotwire_here.
4  
sS osID = #1016478;
5  
sbool standalone = true;
6  
7  
mainClassName DialogKit p-pcall {
8  
  ret if standalone && javaXStandalone_init(args);
9  
  
10  
  Component c = selectJavaXVirtualSpace(vf<File> select);
11  
  JButton useDefault = jbutton("Use default directory", r {
12  
    thread { select(javaxVirtualDir("default")); }
13  
    disposePIFrame(c);
14  
  });
15  
  addToWindow(c, withMargin(useDefault));
16  
  focus(useDefault);
17  
  hideConsole();
18  
}
19  
20  
svoid select(File virtualHome) {
21  
  showConsole();
22  
  File mainJar = getMainJarLocation();
23  
  File unpackDir = newFile(virtualHome, "unpacked");
24  
  if (standalone)
25  
    ret if standalone_start(null, "DialogKit instance", virtualHome, mainJar, unpackDir);
26  
  else
27  
    setUserDir(virtualHome);
28  
  
29  
  saveTextFile(stefansOS_backgroundFile(), #1101626);
30  
  standalone_runOSWithInitialModules(osID, tlftj([[
31  
    #1018866/SystemPrintLog
32  
    #1019954/TaskBar_dev
33  
    // TODO
34  
  ]]));
35  
}

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: 331 / 1264
Version history: 20 change(s)
Referenced in: [show references]