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

21
LINES

< > BotCompany Repo | #1012961 // Test AutoComboBox3 with suggestions from Smart Bot [OK]

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

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

!7

static long timeout = 5000;

p-substance {
  autoRestart();
  final AutoComboBox3 box = autoComboBox3(f makeEntries);
  showForm(
    "", box,
    func {
      infoBox(getText(box));
      false;
    });
}

static L<S> makeEntries(S s) {
  Map map = jsonDecodeMap(loadPageWithTimeout("http://smartbot.botcompany.de/autocomplete/" + urlencode(s), timeout));
  S follow = getString(map, "follow");
  if (empty(follow)) ret ll();
  ret ll(s + follow);
}

Author comment

Began life as a copy of #1012959

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: #1012961
Snippet name: Test AutoComboBox3 with suggestions from Smart Bot [OK]
Eternal ID of this version: #1012961/5
Text MD5: 4c15acccaec475d86bf79363d072d31e
Transpilation MD5: 1543f107d86aa384e3776f8e6f20dc9d
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-18 22:52:27
Source code size: 474 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 533 / 1322
Version history: 4 change(s)
Referenced in: [show references]