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

!7

cmodule PhilosophyBotTextArea > DynTextArea {
  S output;
  transient PhilosophyBot1 bot;
  transient ReliableSingleThread rstRunProgram = dm_rst(this, r runProgram);
  transient JLabel lblStatus;
  
  visual jvsplit(
    jCenteredSection("Program", super),
    centerAndSouth(
      jCenteredSection("Output", dm_textArea_scrollDown_readOnly output()),
      withRightMargin(lblStatus = jRightAlignedLabel())));
  
  start {
    grabInterval = 1.0;
    dm_watchFieldAndNow text(rstRunProgram);
  }
  
  void runProgram {
    temp tempMiniLoadingAnim();
    time {
      setField(output := hijackPrint(r {
        pcall {
          bot = new PhilosophyBot1(text);
          bot.standardImports();
          bot.run();
          bot.checkExpectations();
        }
      }));
    }
    main setText(lblStatus, lastTiming_formatted());
  }
}

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: 231 / 1900
Version history: 14 change(s)
Referenced in: [show references]