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)

static bool showTitledForm_blocking(S title, O... _parts) {
  assertNotOnAWTThread();
  final new Var<Bool> var;
  onFrameClose(showFormTitled(title, arrayPlus(_parts,
    r { var.set(true) })),
    r { if (!var.has()) var.set(false) });
  waitUntilVarSet(var);
  ret var.get();
}

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: 542 / 561
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)