Libraryless. Click here for Pure Java version (14471L/100K).
1 | !7 |
2 | |
3 | sclass ShowPrintLogOfModule extends DynModule {
|
4 | new DynModuleRef mate; |
5 | |
6 | transient StringBuffer log; |
7 | transient JTextArea ta; |
8 | |
9 | void start {
|
10 | ownTimer(doEveryAndNow(1000, r updateMe)); |
11 | } |
12 | |
13 | JComponent visualize() {
|
14 | if (log == null) null; |
15 | ret jSection(str(mate), ta = typeWriterTextArea(str(log))); |
16 | } |
17 | |
18 | void update {
|
19 | if (setField(mate := DynModuleRef(dm_closestModule(this)))) {
|
20 | O m = mate!; |
21 | //print(">> " + getClassName(m));
|
22 | log = (StringBuffer) getOpt(getMainClass(m), 'local_log); |
23 | revisualize(); |
24 | } |
25 | if (ta != null && log != null) setText(ta, str(log)); |
26 | } |
27 | } |
Began life as a copy of #1016129
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: | #1016130 |
| Snippet name: | Show Print Log Of Module [Dyn Module] |
| Eternal ID of this version: | #1016130/6 |
| Text MD5: | 7635a903caeb08256dd2b5351ec04529 |
| Transpilation MD5: | a533a11777fabcc5e9d9501b234eb40e |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-08 18:35:26 |
| Source code size: | 656 bytes / 27 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 661 / 9997 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |