Libraryless. Click here for Pure Java version (7558L/53K).
1 | static JMenuItem intFieldMenuItem(O o, S field, O... _) { |
2 | S humanized = humanizeFormLabel(field); |
3 | ret jMenuItem(humanizeFormLabel(field) + "...", r { |
4 | final JTextField tf = jtextfield(get(o, field)); |
5 | showFormTitled(or2(stringOptPar(_, 'formTitle), "Set " + humanized), |
6 | humanized + ":", tf, r { |
7 | set(o, field, parseInt(gtt(tf))); |
8 | callF(optPar onSet(_)); |
9 | }); |
10 | }); |
11 | } |
Began life as a copy of #1024934
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024939 |
Snippet name: | intFieldMenuItem |
Eternal ID of this version: | #1024939/3 |
Text MD5: | 1467e2050db19b81d1dbd1934d44c253 |
Transpilation MD5: | 9c2bc1425168b128c3a7a69dbbe70737 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-31 03:32:51 |
Source code size: | 412 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 201 / 284 |
Version history: | 2 change(s) |
Referenced in: | [show references] |