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

29
LINES

< > BotCompany Repo | #1013360 // Smart Bot GUI

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

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

!7

static long timeout = 5000;
static int maxEntries = 10;

static AutoComboBox3 box;

p-noconsole {
  autoRestart();
  smartBot_autoComplete_defaultMaxEntries = maxEntries;
  smartBot_autoComplete_defaultHardTimeout = timeout;
  box = autoComboBox3(f smartBot_autoComplete);
  centerComboBox(box);
  setFontSize(box, 20);
  setComboBoxListFontSize(box, 20);
  onEnter(box,
    r { openPlatformBrowser(smartBot_topicLink(getText(box))) });
  setY(200, showFrameFlat_minWidth(500,
    vstack(withMargin(centeredline(
      jbutton("Send in Stefan's Chat", r {
        infoBox(postToStefansChat(input()) ? "OK" : "!*&$")
      }),
      jbutton("Send in Smart Bot's Chat", r {
        infoBox(postToSmartBotsChat(input()) ? "OK" : "!*&$")
      }))), box)));
  requestFocus(box);
}

sS input() { ret getText(box); }

Author comment

Began life as a copy of #1012964

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013360
Snippet name: Smart Bot GUI
Eternal ID of this version: #1013360/11
Text MD5: 525469f860db5e8b54a8ca612aa04607
Transpilation MD5: d6e4fb96241abe71706a70817228aa77
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-03 22:43:20
Source code size: 842 bytes / 29 lines
Pitched / IR pitched: No / No
Views / Downloads: 521 / 15562
Version history: 10 change(s)
Referenced in: [show references]