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

9
LINES

< > BotCompany Repo | #1006429 // showTitledForm_blocking - return true if submit button pressed, false if window closed

JavaX fragment (include)

1  
static bool showTitledForm_blocking(S title, O... _parts) {
2  
  assertNotOnAWTThread();
3  
  final new Var<Bool> var;
4  
  onFrameClose(showFormTitled(title, arrayPlus(_parts,
5  
    r { var.set(true) })),
6  
    r { if (!var.has()) var.set(false) });
7  
  waitUntilVarSet(var);
8  
  ret var.get();
9  
}

Author comment

Began life as a copy of #1005001

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006429
Snippet name: showTitledForm_blocking - return true if submit button pressed, false if window closed
Eternal ID of this version: #1006429/1
Text MD5: f760bd25653f66e150106e5ee871a2aa
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-01 21:05:12
Source code size: 290 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 497 / 514
Referenced in: [show references]