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

15
LINES

< > BotCompany Repo | #1009825 // showCommandList - show an inferred list of this bot's commands at side of console

JavaX fragment (include)

static JList showCommandList() {
  ret swingUnlessHeadless(func -> JList {
    final JList list = jlist(knownCommands());
    addToFrameSplitRight_aggressive(consoleFrame(),
      withTitle("Commands", list), 0.7f);
    onDoubleClick(list, r {
      S s = getSelectedItem(list);
      if (!javaTok(s).contains("*") /* && eq(s, consoleInput())*/)
        consoleSend(s);
      else
        consoleSetInputAndFocus(s);
    });
    ret list;
  });
}

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: #1009825
Snippet name: showCommandList - show an inferred list of this bot's commands at side of console
Eternal ID of this version: #1009825/12
Text MD5: 8a6e8508cbfe7b88f8463046c3211f10
Author: stefan
Category: javax / gui / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-25 19:54:12
Source code size: 460 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 511 / 516
Version history: 11 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013762 - showWebsBesideConsole - show Robo thoughts