Libraryless. Click here for Pure Java version (4948L/33K/113K).
!752 static JTextField tf1, tf2, tf3, tf4; static JLabel lblEntries; concepts. concept Quadro { S user, system, suggest, feedback; } static Quadro currentQuadro; p-substance { loadAndAutoSaveConcepts(); showForm( "User:", tf1 = new JTextField, "System:", tf2 = new JTextField, "Suggest:", tf3 = new JTextField, "Feedback:", tf4 = new JTextField, "Entries in DB:" , lblEntries = jlabel()); installTimer(lblEntries, 1000, r { lblEntries.setText(str(countConcepts(Quadro.class))); }); onEnter(tf1, r { currentQuadro = null; q().user = tf1.getText(); q().system = makeSystemAnswer(q().user); tf2.setText(q().system); tf4.requestFocus(); }); onEnter(tf3, r { q().suggest = tf3.getText(); }); onEnter(tf4, r { q().feedback = tf4.getText(); }); } static Quadro q() { if (currentQuadro == null) currentQuadro = new Quadro; ret currentQuadro; } static S makeSystemAnswer(S q) { ret "woooot"; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005074 |
Snippet name: | 4 Input Fields [dev.] |
Eternal ID of this version: | #1005074/1 |
Text MD5: | 9b4b666dc264717f925d8d029e70a8fa |
Transpilation MD5: | 378417edd5ffa1da96ecbd1487f599dd |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-10-08 18:51:04 |
Source code size: | 1046 bytes / 53 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 583 / 873 |
Referenced in: | #1005077 - Test safeLoadConcepts |