static void showWebsBesideConsole() { showWebsBesideConsole(0.7f); } static void showWebsBesideConsole(final float splitRatio) { swingUnlessHeadless(r { final JList list = jlist(); final Runnable update = r { fillListWithStrings(list, renderTriplesWithDate(ai_allTriplesByDate())) }; callF(update); ai_onNewWeb(update); listPopupMenuItem(list, "Forget", voidfunc(S item) { ai_silentlyInvalidateAndDeleteTriple(ai_findTriple(ai_parseTriple(dropLeadingDate(item)))); callF(update); }); Runnable forgetAll = r { ai_deleteWebsMadeByProgram(ai_programID()); ai_clearTripleIndex(); callF(update); }; addToFrameSplitRight_aggressive(consoleFrame(), withTitle("Thoughts:", centerAndSouth(list, jcenteredbutton("Forget all", forgetAll))), splitRatio); }); }
Began life as a copy of #1009825
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: | #1013762 |
Snippet name: | showWebsBesideConsole - show Robo thoughts |
Eternal ID of this version: | #1013762/15 |
Text MD5: | 53dc1d958441c8ba53ce66ecf0caff49 |
Author: | stefan |
Category: | javax / gui / talking robots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-02-27 12:54:54 |
Source code size: | 870 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 318 / 348 |
Version history: | 14 change(s) |
Referenced in: | [show references] |