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

27
LINES

< > BotCompany Repo | #1014737 // Test autoGetDataFromForm (OK)

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (9095L/66K).

1  
!7
2  
3  
p-experiment {
4  
  final JTextField tfSender = jtextfield("Me");
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  
  JComponent c = showFormTitled_customLayout(formLayouter1(), "GMail Send Form",
13  
    "From:", tfSender,
14  
    "To:", tfTo,
15  
    "Subject:", tfSubject,
16  
    "Text:", tfText,
17  
    "", jbutton("Send mail!"));
18  
  disposeWindow(c);
19  
    
20  
  assertEqualsVerbose_fullTrim([[
21  
    1. "From:" = "Me"
22  
    2. "To:" = "bill.gates@microsoft.com"
23  
    3. "Subject:" = "Hello"
24  
    4. "Text:" = "Hello Bill.\n\n-Sent from my JavaX computer"
25  
]],
26  
    pnlStructToString(autoGetDataFromForm(c)));
27  
}

Author comment

Began life as a copy of #1014736

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: #1014737
Snippet name: Test autoGetDataFromForm (OK)
Eternal ID of this version: #1014737/6
Text MD5: bb1711f98cff763497231199ab974420
Transpilation MD5: 031a4fcf7d56a9806741f1fc53f80171
Author: stefan
Category: javax / gui / forms
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-01 16:00:16
Source code size: 779 bytes / 27 lines
Pitched / IR pitched: No / No
Views / Downloads: 534 / 1395
Version history: 5 change(s)
Referenced in: [show references]