Uses 911K of libraries. Click here for Pure Java version (3176L/17K).
!7 cmodule StackedSections { transient JPanel stack; visual withCenteredButtons( jscroll_trackWidth(stack = customLayoutPanel(formLayouter2())), "Add label", r { addAndValidate(stack, jSection(randomID(), jlabel(textFromRandomEnglishWords(20)))) }, "Add text area", r { addAndValidate(stack, jSection(randomID(), jtextarea(randomID()))) }); }
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: | #1022753 |
Snippet name: | Stacked Sections Demo (works with labels, doesn't with text areas) |
Eternal ID of this version: | #1022753/9 |
Text MD5: | 14bf5bdd2986cbd28f699ab4bfd789eb |
Transpilation MD5: | 1449ec42c6adc68beb3a76215db38017 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-06 13:42:57 |
Source code size: | 371 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 302 / 484 |
Version history: | 8 change(s) |
Referenced in: | [show references] |