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

21
LINES

< > BotCompany Repo | #1022759 // Big Input with stacked sections Spike [old, unshortened]

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

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

!7

cmodule BigInputWithSections {
  S text;
  switchable int fontSize = 20;
  
  transient JPanel stack;
  transient Trigger trigger_makeSections = new(r makeSections);

  start { onChange(trigger_makeSections); }

  visual withComputing(trigger_makeSections,
    jvsplit(setFontSize(fontSize, dm_textArea('text)),
      jscroll_trackWidth(stack = customLayoutPanel(new StackLayouter))));
      
  void makeSections() q {
    if (stack == null || !trigger_makeSections.check()) ret;
    removeAllComponents(stack);
    addAndValidate(stack, jSection("Character count", jlabel(l_str(text))));
  }
}

Author comment

Began life as a copy of #1022742

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: #1022759
Snippet name: Big Input with stacked sections Spike [old, unshortened]
Eternal ID of this version: #1022759/18
Text MD5: ba2b0f320cda97776dc3f73e9fb6747c
Transpilation MD5: 20ad710ffec3c3ff9751500d4e6eafeb
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-07 15:34:14
Source code size: 618 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 241 / 761
Version history: 17 change(s)
Referenced in: [show references]