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

16
LINES

< > BotCompany Repo | #1028947 - DynTableWithInput2

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (19256L/138K).

asclass DynTableWithInput2<A> extends DynObjectTable<A> {
  switchable S input;
  transient JTextField tfInput;
  transient ReliableSingleThread rstCalc = dm_rst(r calc);
  
  visual northAndCenterWithMargins(tfInput = dm_textField input(),
    mainComponent());
    
  JComponent mainComponent() { ret super.visualize(); }
  
  start {
    dm_watchFieldAndNow input(rstCalc);
  }
  
  abstract void calc();
}

Author comment

Began life as a copy of #1021502

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028947
Snippet name: DynTableWithInput2
Eternal ID of this version: #1028947/3
Text MD5: 726639f2b94ad32232293f78367dbf0f
Transpilation MD5: 1f2843d35041bb96067de114ebf78bb2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-12 20:25:27
Source code size: 424 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 14 / 45
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1028947 & http://1028947.tinybrain.de