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

34
LINES

< > BotCompany Repo | #1025777 // Philosophy Bot Text Area [OK]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (12277L/63K).

1  
!7
2  
3  
cmodule PhilosophyBotTextArea > DynTextArea {
4  
  S output;
5  
  transient PhilosophyBot1 bot;
6  
  transient ReliableSingleThread rstRunProgram = dm_rst(this, r runProgram);
7  
  transient JLabel lblStatus;
8  
  
9  
  visual jvsplit(
10  
    jCenteredSection("Program", super),
11  
    centerAndSouth(
12  
      jCenteredSection("Output", dm_textArea_scrollDown_readOnly output()),
13  
      withRightMargin(lblStatus = jRightAlignedLabel())));
14  
  
15  
  start {
16  
    grabInterval = 1.0;
17  
    dm_watchFieldAndNow text(rstRunProgram);
18  
  }
19  
  
20  
  void runProgram {
21  
    temp tempMiniLoadingAnim();
22  
    time {
23  
      setField(output := hijackPrint(r {
24  
        pcall {
25  
          bot = new PhilosophyBot1(text);
26  
          bot.standardImports();
27  
          bot.run();
28  
          bot.checkExpectations();
29  
        }
30  
      }));
31  
    }
32  
    main setText(lblStatus, lastTiming_formatted());
33  
  }
34  
}

Author comment

Began life as a copy of #1025647

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025777
Snippet name: Philosophy Bot Text Area [OK]
Eternal ID of this version: #1025777/15
Text MD5: 5a253bcd7497310225ae3e91fe399a27
Transpilation MD5: 04ad9c8a903ed41ad8dea441310c5cc9
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-19 22:07:58
Source code size: 875 bytes / 34 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 1829
Version history: 14 change(s)
Referenced in: [show references]