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).

!7

p-noconsole {
  final JTextField tfSender = jtextfield(completeGMailAddress(gmailDefaultUser()));
  final JTextField tfTo = jtextfield("bill.gates@microsoft.com");
  final JTextField tfSubject = jtextfield("Hello");
  final JTextArea tfText = jwrappedtextarea(trim([[
Hello Bill.

-Sent from my JavaX computer]]));

  final JComponent c = showFormTitled_customLayout(formLayouter1(), "GMail Send Form",
    "From:", tfSender,
    "To:", tfTo,
    "Subject:", tfSubject,
    "Text:", tfText,
    "", jbutton("Send mail!", r-thread-messagebox {
      infoBox("Sending...");
      quickGMail(getTextTrim(tfSender), getTextTrim(tfTo),
        getTextTrim(tfSubject), getText(tfText));
      infoBox("Sent!");
    }));
    
  addFontChangersToTitleMenu(c, f callMain); // TODO: keep data
}

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: 524 / 1270
Version history: 13 change(s)
Referenced in: #1014736 - GMail Send Form, with data retention (OK)