Download Jar. Uses 3874K of libraries. Click here for Pure Java version (3798L/27K).
1 | !7 |
2 | |
3 | p-noconsole {
|
4 | quickSolve_preload(); |
5 | final L<JTextField> l = repF(7, f jtextfield); |
6 | final JTextField lblOutput = jdisabledtextfield(); |
7 | showForm(flattenArray2("In", "Out", l, "", "Result", lblOutput, "", jbutton("Solve", r-thread {
|
8 | loading {
|
9 | L<JTextField> _l = l; |
10 | while (l(_l) > 0 && empty(getTextTrim(last(_l)))) truncateList(_l, l(_l)-1); |
11 | L<S> items = map getText(_l); |
12 | S question = null; |
13 | if (odd(l(items))) question = popLast(items); |
14 | O f = quickSolveToFunction(items); |
15 | S text = "Not solved"; |
16 | if (f != null) |
17 | if (question != null) |
18 | text = str(callF(f, question)); |
19 | else |
20 | text = "Solved"; |
21 | setText(lblOutput, text); |
22 | } |
23 | }))); |
24 | } |
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: | #1010424 |
| Snippet name: | quickSolve Form [OK] |
| Eternal ID of this version: | #1010424/13 |
| Text MD5: | b98b9d382c4857dd5144a5fde4c74d03 |
| Transpilation MD5: | 64b789d7ea345c0906876e715990c311 |
| Author: | stefan |
| Category: | javax / a.i. / gui |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-17 18:36:16 |
| Source code size: | 753 bytes / 24 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 723 / 1716 |
| Version history: | 12 change(s) |
| Referenced in: | [show references] |