Download Jar. Uses 4463K of libraries. Click here for Pure Java version (7501L/51K).
1 | !7 |
2 | |
3 | p-noconsole { |
4 | final JTextField tfSender = jtextfield(completeGMailAddress(gmailDefaultUser())); |
5 | final JTextField tfTo = jtextfield("bill.gates@microsoft.com"); |
6 | final JTextField tfSubject = jtextfield("Hello"); |
7 | final JTextArea tfText = jwrappedtextarea(trim([[ |
8 | Hello Bill. |
9 | |
10 | -Sent from my JavaX computer]])); |
11 | |
12 | final JComponent c = showFormTitled("GMail Send Form", |
13 | "From:", tfSender, |
14 | "To:", tfTo, |
15 | "Subject:", tfSubject, |
16 | "Text:", jminheight(300, tfText), |
17 | "", jbutton("Send mail!", r-thread-messagebox { |
18 | infoBox("Sending..."); |
19 | quickGMail(getTextTrim(tfSender), getTextTrim(tfTo), |
20 | getTextTrim(tfSubject), getText(tfText)); |
21 | infoBox("Sent!"); |
22 | })); |
23 | |
24 | // TODO: keep data |
25 | titlePopupMenuItem(c, "Bigger fonts", r { |
26 | swingBiggerFonts(); |
27 | disposeWindow(c); |
28 | callMain(); |
29 | }); |
30 | titlePopupMenuItem(c, "Smaller fonts", r { |
31 | swingSmallerFonts(); |
32 | disposeWindow(c); |
33 | callMain(); |
34 | }); |
35 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014690 |
Snippet name: | GMail Send Form (layout needs improvement) |
Eternal ID of this version: | #1014690/21 |
Text MD5: | 40b17481c96dfa1a9f5c2eeddc31c78e |
Transpilation MD5: | 9f1b8a6448c15e0555db2463a6817577 |
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-05-01 13:58:56 |
Source code size: | 992 bytes / 35 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 544 / 1311 |
Version history: | 20 change(s) |
Referenced in: | [show references] |