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

22
LINES

< > BotCompany Repo | #1015738 // The Intelligent Program v1 [OK, renders safe standard functions]

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (10889L/78K).

!7

static AutoComboBox3 tf;
static SingleComponentPanel scp;
static ReliableSingleThread rst = new(r go);
sS loaded;

p-subst {
  autoRestart(5);
  showFrame(northAndCenterWithMargins(
    fontSize(15, centerComboBox(tf = standardFunctionComboBox())),
    scp = singleComponentPanel()));
  onChange(tf, rstTrigger(rst));
}

svoid go {
  S s = getTextTrim(tf);
  if (eq(loaded, s)) ret;
  loaded = s;
  JComponent c = iPanel_renderSafeFunction(s, r { loaded = null; rst.trigger() });
  if (c != null) scp.setComponent(c);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015738
Snippet name: The Intelligent Program v1 [OK, renders safe standard functions]
Eternal ID of this version: #1015738/30
Text MD5: c675170bfa868d4fb147d4e1e4a03197
Transpilation MD5: 5e0fed833923f84344d406f46b820113
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-27 18:12:19
Source code size: 544 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 558 / 1558
Version history: 29 change(s)
Referenced in: [show references]