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

26
LINES

< > BotCompany Repo | #1007528 // Add Relation Between Two Concepts [WORKS]

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

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

!7

p-substance-noconsole {
  final AutoComboBox cb1 = aiConceptsComboBox();
  final AutoComboBox cb2 = aiConceptsComboBox();
  final AutoComboBox cb3 = aiConceptsComboBox();
  showFormTitled("Add Relation",
    "Concept 1", cb1,
    "Relation", cb2,
    "Concept 2", cb3,
    func {
      pcall-messagebox {
        fS c1 = jGetGlobalID(cb1);
        fS c2 = jGetGlobalID(cb2);
        fS c3 = jGetGlobalID(cb3);
        assertTrue("Please fill all fields", allNempty(c1, c2, c3));
        thread {
          loading {
            addTruthWithInfoBox(c2 + " " + c1 + " " + c3);
            disposeFrame(cb1);
          }
        }
      }
      false;
    });
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007528
Snippet name: Add Relation Between Two Concepts [WORKS]
Eternal ID of this version: #1007528/11
Text MD5: bf89dff4ee9334c1963f976002831c8f
Transpilation MD5: 937dd45ca46265d893f2e79e76d50a07
Author: stefan
Category: javax / a.i. / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-26 12:31:16
Source code size: 687 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 641 / 11475644
Version history: 10 change(s)
Referenced in: [show references]