Uses 1059K of libraries. Click here for Pure Java version (8841L/45K).
1 | !7 |
2 | |
3 | cmodule2 FontDemo > DynSCP { |
4 | switchable S fontSnippetID; |
5 | switchable int fontSize = 100; |
6 | switchable S text = charRange('A', 'Z') + charRange('a', 'z') + charRange('0', '9'); |
7 | |
8 | start { |
9 | dm_onFieldChange text(r show); |
10 | } |
11 | |
12 | visualize { |
13 | JComponent c = northAndCenter(centerAndEastWithMargins( |
14 | vstackWithSpacing( |
15 | jhgridWithSpacing(dm_textFieldWithLabel fontSnippetID(), |
16 | dm_intSpinnerWithLabel fontSize(1, 200)), |
17 | dm_textFieldWithLabel text()), |
18 | jbutton("Show", rThreadEnter show)), |
19 | super.visualize(); |
20 | dm_inQ(r show); |
21 | ret c; |
22 | } |
23 | |
24 | void show { |
25 | JScrollPane sp = scrollableImageSurface(renderText(fontSnippetID, fontSize, text)); |
26 | scp.setComponent(jSection(snippetWithTitle(fontSnippetID), sp)); |
27 | } |
28 | } |
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: | #1015995 |
Snippet name: | Font Demo [Dyn Module, OK] |
Eternal ID of this version: | #1015995/15 |
Text MD5: | 7d97a15ad350bebae339d2832f2ff05c |
Transpilation MD5: | 70076aa94fd02aca6b3d6d8c352fefce |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-02-01 13:57:17 |
Source code size: | 771 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 492 / 4858 |
Version history: | 14 change(s) |
Referenced in: | [show references] |