Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1022753 // Stacked Sections Demo (works with labels, doesn't with text areas)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (3176L/17K).

1  
!7
2  
3  
cmodule StackedSections {
4  
  transient JPanel stack;
5  
  
6  
  visual withCenteredButtons(
7  
    jscroll_trackWidth(stack = customLayoutPanel(formLayouter2())),
8  
    "Add label", r { addAndValidate(stack, jSection(randomID(), jlabel(textFromRandomEnglishWords(20)))) },
9  
    "Add text area", r { addAndValidate(stack, jSection(randomID(), jtextarea(randomID()))) });
10  
}

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: 303 / 487
Version history: 8 change(s)
Referenced in: [show references]