Uses 1059K of libraries. Click here for Pure Java version (8841L/45K).
!7 cmodule2 FontDemo > DynSCP { switchable S fontSnippetID; switchable int fontSize = 100; switchable S text = charRange('A', 'Z') + charRange('a', 'z') + charRange('0', '9'); start { dm_onFieldChange text(r show); } visualize { JComponent c = northAndCenter(centerAndEastWithMargins( vstackWithSpacing( jhgridWithSpacing(dm_textFieldWithLabel fontSnippetID(), dm_intSpinnerWithLabel fontSize(1, 200)), dm_textFieldWithLabel text()), jbutton("Show", rThreadEnter show)), super.visualize(); dm_inQ(r show); ret c; } void show { JScrollPane sp = scrollableImageSurface(renderText(fontSnippetID, fontSize, text)); scp.setComponent(jSection(snippetWithTitle(fontSnippetID), sp)); } }
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: | 491 / 4857 |
Version history: | 14 change(s) |
Referenced in: | [show references] |