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

25
LINES

< > BotCompany Repo | #1007394 // Simple Input Collector

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (9956L/69K).

!7

concept UserLine {
  S text;
  long typed;
}

static JTextField tf;

p-substance-noconsole {
  //showConceptsTable_postProcess.set(f reversedList);
  showConceptsTable_afterUpdate.set(voidfunc(JTable t) {
    print("Scrolling down!");
    scrollTableDownIn(t, 100);
  });
  SimpleCRUD<UserLine> crud = fastCRUD(programTitle(), UserLine);
  
  tf = setTextFieldFontSize(jCenteredTextField(), 20);
  addToWindow(crud.panel, withTitle("Type here:", tf));
  onEnter(tf, r {
    tf.selectAll();
    cnew(UserLine, text := getTextTrim(tf), typed := now());
  });
  focus(tf);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007394
Snippet name: Simple Input Collector
Eternal ID of this version: #1007394/16
Text MD5: 8acdd4a5a98f76f3bf507b0d381c4aa0
Transpilation MD5: 93c6589e1a2fcfb19a989054e9212b6a
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-21 13:15:15
Source code size: 599 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 586 / 1466
Version history: 15 change(s)
Referenced in: [show references]