Uses 715K of libraries. Click here for Pure Java version (14710L/103K).
!7 sclass UsersPrimaryMailAddress extends DynModule { S address; JComponent visualize() { ret jSection("Your Primary E-Mail Address", centerAndSouth(centerBoldLabel(jLiveValueLabel(dm_fieldLiveValue(this, 'address))), jcenteredbuttons("Change...", r { final JTextField tf = jtextfield(address); showFormTitled("Set your e-mail address", "Address", tf, disableButtonWhileCalcing(func -> bool { S s = getTextTrim(tf); if (empty(s) || isValidEmailAddress(s)) ret true with setField(address := s); ret false with infoBox(s + " is not a valid mail address"); })); }))); } }
Began life as a copy of #1015916
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: | #1015970 |
Snippet name: | User's Primary E-Mail Address [Dyn Module, OK] |
Eternal ID of this version: | #1015970/11 |
Text MD5: | 4d5415c2daaa528214b31598773b0a36 |
Transpilation MD5: | dc100445cc9d12f21bbfe64e3a1ed7ea |
Author: | stefan |
Category: | javax / stefan''s os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-08 18:39:01 |
Source code size: | 703 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 1574 / 1887 |
Version history: | 10 change(s) |
Referenced in: | [show references] |