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

1  
!7
2  
3  
static AutoComboBox3 tf;
4  
static SingleComponentPanel scp;
5  
static ReliableSingleThread rst = new(r go);
6  
sS loaded;
7  
8  
p-subst {
9  
  autoRestart(5);
10  
  showFrame(northAndCenterWithMargins(
11  
    fontSize(15, centerComboBox(tf = standardFunctionComboBox())),
12  
    scp = singleComponentPanel()));
13  
  onChange(tf, rstTrigger(rst));
14  
}
15  
16  
svoid go {
17  
  S s = getTextTrim(tf);
18  
  if (eq(loaded, s)) ret;
19  
  loaded = s;
20  
  JComponent c = iPanel_renderSafeFunction(s, r { loaded = null; rst.trigger() });
21  
  if (c != null) scp.setComponent(c);
22  
}

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: 407 / 1200
Version history: 29 change(s)
Referenced in: [show references]