Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7265L/50K).
1 | !7 |
2 | |
3 | static long timeout = 5000; |
4 | static int maxEntries = 10; |
5 | |
6 | static AutoComboBox3 box; |
7 | |
8 | p-noconsole { |
9 | autoRestart(); |
10 | smartBot_autoComplete_defaultMaxEntries = maxEntries; |
11 | smartBot_autoComplete_defaultHardTimeout = timeout; |
12 | box = autoComboBox3(f smartBot_autoComplete); |
13 | centerComboBox(box); |
14 | setFontSize(box, 20); |
15 | setComboBoxListFontSize(box, 20); |
16 | onEnter(box, |
17 | r { openPlatformBrowser(smartBot_topicLink(getText(box))) }); |
18 | setY(200, showFrameFlat_minWidth(500, |
19 | vstack(withMargin(centeredline( |
20 | jbutton("Send in Stefan's Chat", r { |
21 | infoBox(postToStefansChat(input()) ? "OK" : "!*&$") |
22 | }), |
23 | jbutton("Send in Smart Bot's Chat", r { |
24 | infoBox(postToSmartBotsChat(input()) ? "OK" : "!*&$") |
25 | }))), box))); |
26 | requestFocus(box); |
27 | } |
28 | |
29 | sS input() { ret getText(box); } |
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: | 524 / 15573 |
Version history: | 10 change(s) |
Referenced in: | [show references] |