Uses 911K of libraries. Click here for Pure Java version (3228L/17K).
1 | !7 |
2 | |
3 | cmodule StackedSections { |
4 | transient JPanel stack; |
5 | transient new StackLayouter layouter; |
6 | |
7 | visual withCenteredButtons( |
8 | jscroll_trackWidth(stack = customLayoutPanel(layouter)), |
9 | "Add label", r { addAndValidate(stack, jSection(randomID(), jlabel(textFromRandomEnglishWords(20)))) }, |
10 | "Add text area", r { addAndValidate(stack, jSection(randomID(), jtextarea(linesLL(randomID(), randomID())))) }); |
11 | } |
Began life as a copy of #1022753
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: | #1022756 |
Snippet name: | Stacked Sections Demo 2 (OK, uses preferred heights) |
Eternal ID of this version: | #1022756/3 |
Text MD5: | 459fbf3701b8bdd5a5200334ef1b40e8 |
Transpilation MD5: | b59b356817231fc2179538f96de34960 |
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 14:00:03 |
Source code size: | 426 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 302 / 541 |
Version history: | 2 change(s) |
Referenced in: | [show references] |