Download Jar. Uses 4539K of libraries. Click here for Pure Java version (8732L/64K).
1 | !7 |
2 | |
3 | static JComponent form; |
4 | static SS data; |
5 | |
6 | p-noconsole {
|
7 | load("data");
|
8 | |
9 | final JTextField tfSender = jtextfield(completeGMailAddress(gmailDefaultUser())); |
10 | final JTextField tfTo = jtextfield("billg@microsoft.com");
|
11 | final JTextField tfSubject = jtextfield("Hello");
|
12 | final JTextArea tfText = jwrappedtextarea(trim([[ |
13 | Hello Bill. |
14 | |
15 | -Sent from my JavaX computer]])); |
16 | |
17 | form = setFormData(data, showFormTitled2("GMail Send Form",
|
18 | "From:", tfSender, |
19 | "To:", tfTo, |
20 | "Subject:", tfSubject, |
21 | "Text:", tfText, |
22 | "", jbutton("Send mail!", r-thread-messagebox {
|
23 | infoBox("Sending...");
|
24 | quickGMail(getTextTrim(tfSender), getTextTrim(tfTo), |
25 | getTextTrim(tfSubject), getText(tfText)); |
26 | infoBox("Sent!");
|
27 | }))); |
28 | |
29 | addFontChangersToTitleMenu(form, r innerCleanUpAndReRunMain); |
30 | } |
31 | |
32 | svoid cleanMeUp {
|
33 | if (form != null) setAndSave(data := autoGetDataFromForm(form)); |
34 | } |
Began life as a copy of #1014720
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014736 |
| Snippet name: | GMail Send Form, with data retention (OK) |
| Eternal ID of this version: | #1014736/11 |
| Text MD5: | 8a3bb997e26010e64a7eef2048f378cc |
| Transpilation MD5: | a182b4f2dd1f21744acd8872bb0d9701 |
| Author: | stefan |
| Category: | javax / mail / gui |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-19 17:21:53 |
| Source code size: | 940 bytes / 34 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 729 / 2058 |
| Version history: | 10 change(s) |
| Referenced in: | [show references] |