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

11
LINES

< > BotCompany Repo | #1022756 // Stacked Sections Demo 2 (OK, uses preferred heights)

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

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

!7

cmodule StackedSections {
  transient JPanel stack;
  transient new StackLayouter layouter;
  
  visual withCenteredButtons(
    jscroll_trackWidth(stack = customLayoutPanel(layouter)),
    "Add label", r { addAndValidate(stack, jSection(randomID(), jlabel(textFromRandomEnglishWords(20)))) },
    "Add text area", r { addAndValidate(stack, jSection(randomID(), jtextarea(linesLL(randomID(), randomID())))) });
}

Author comment

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: 218 / 445
Version history: 2 change(s)
Referenced in: [show references]