Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #1014720 // GMail Send Form, better layout (OK)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 4463K of libraries. Click here for Pure Java version (7619L/53K).

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_customLayout(formLayouter1(), "GMail Send Form",
13  
    "From:", tfSender,
14  
    "To:", tfTo,
15  
    "Subject:", tfSubject,
16  
    "Text:", 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  
  addFontChangersToTitleMenu(c, f callMain); // TODO: keep data
25  
}

Author comment

Began life as a copy of #1014690

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: #1014720
Snippet name: GMail Send Form, better layout (OK)
Eternal ID of this version: #1014720/14
Text MD5: 9446283b8fbef48f38ab2635370a01dd
Transpilation MD5: 4be07e5c8a58a2dfa164cc708e34b416
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 14:58:37
Source code size: 812 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 403 / 1003
Version history: 13 change(s)
Referenced in: [show references]