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

18
LINES

< > BotCompany Repo | #1020559 // Show Random Speech Log Lines

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

Libraryless. Click here for Pure Java version (14451L/99K).

!7

module RandomSpeechLogLines {
  S line;
  
  start {
    setModuleName("Random Speech Log Line (of " + n2(dm_speechLog(), "line") + ")");
  }
  
  visualize {
    JLabel lbl = fontSizePlus(3, dm_centeredFieldLabel('line));
    awtCalcEvery(lbl,
      0.0, 5.0, r {
        setField(line := random(dm_speechLog()));
      });
    ret lbl;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020559
Snippet name: Show Random Speech Log Lines
Eternal ID of this version: #1020559/7
Text MD5: 40c041b62c5476fa1e0620ae2be70ba2
Transpilation MD5: 817fa6e59634ad864934bffae9725f42
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-26 21:49:52
Source code size: 364 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 241 / 327
Version history: 6 change(s)
Referenced in: [show references]