Uses 911K of libraries. Click here for Pure Java version (5528L/29K).
1 | !7 |
2 | |
3 | cmodule BigInputWithSections {
|
4 | S text; |
5 | switchable int fontSize = 20; |
6 | |
7 | transient JPanel stack; |
8 | transient Trigger trigger_makeSections = new(r makeSections); |
9 | |
10 | start { onChange(trigger_makeSections); }
|
11 | |
12 | visual withComputing(trigger_makeSections, |
13 | jvsplit(setFontSize(fontSize, dm_textArea('text)),
|
14 | jscroll_trackWidth(stack = customLayoutPanel(new StackLayouter)))); |
15 | |
16 | void makeSections() q {
|
17 | if (stack == null || !trigger_makeSections.check()) ret; |
18 | removeAllComponents(stack); |
19 | addAndValidate(stack, jSection("Character count", jlabel(l_str(text))));
|
20 | } |
21 | } |
Began life as a copy of #1022742
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022759 |
| Snippet name: | Big Input with stacked sections Spike [old, unshortened] |
| Eternal ID of this version: | #1022759/18 |
| Text MD5: | ba2b0f320cda97776dc3f73e9fb6747c |
| Transpilation MD5: | 20ad710ffec3c3ff9751500d4e6eafeb |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-04-07 15:34:14 |
| Source code size: | 618 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 520 / 1115 |
| Version history: | 17 change(s) |
| Referenced in: | [show references] |