Uses 1113K of libraries. Click here for Pure Java version (21641L/119K).
1 | !7 |
2 | |
3 | svoid _onLoad { |
4 | onTranspilerDirty(r dm_mediumRefreshTranspiler); |
5 | } |
6 | |
7 | cmodule2 StefansAssistant > DynPrintLog { |
8 | transient JTextField tfInput; |
9 | |
10 | start { |
11 | JComponent trayIcon = jimage(#1101420); |
12 | onLeftClick(trayIcon, rThreadEnter addStdFunctionWithAnimation); |
13 | componentPopupMenuItems(trayIcon, "Stefan's Assistant", |
14 | r { dm_showModule(module()) }, |
15 | "Refresh Transpiler", r dm_refreshTranspiler); |
16 | dm_setTrayIcon(trayIcon); |
17 | dm_onSnippetEdited(#1006654, r dm_reloadModule); |
18 | |
19 | dm_stefansAssistant_offerSFOnSnippetCreated(); |
20 | } |
21 | |
22 | visual |
23 | centerAndSouthWithMargins(super, |
24 | centerAndEastWithSpacing(onEnter(tfInput = jtextfield("sf"), rThread go), jbutton("Go", rThread go))); |
25 | |
26 | enhanceFrame { |
27 | onInternalFrameActivatedAndNow(f/JInternalFrame, rEnter { |
28 | if (!dm_osLoading()) focus(tfInput); |
29 | }); |
30 | } |
31 | |
32 | void go enter { |
33 | print(stefansAssistant_answer(getText(tfInput))); |
34 | } |
35 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1016808 |
Snippet name: | Stefan's Assistant [Dyn Module] |
Eternal ID of this version: | #1016808/28 |
Text MD5: | 21d5e4cb69e879dc1a1a13fa3cfe7f72 |
Transpilation MD5: | 861f6ed7f52ce37e51ac657b7d55dd28 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-29 00:38:28 |
Source code size: | 974 bytes / 35 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 513 / 265584 |
Version history: | 27 change(s) |
Referenced in: | [show references] |