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

8
LINES

< > BotCompany Repo | #1003679 - confirmYesNo - Swing confirmation dialog

JavaX fragment (include)

static bool confirmYesNo(S msg) {
  ret confirmYesNo(null, msg);
}

static bool confirmYesNo(final Component owner, fS msg) {
  ret (bool) swing(func { JOptionPane.showConfirmDialog(owner,
    msg, "JavaX", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION });
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003679
Snippet name: confirmYesNo - Swing confirmation dialog
Eternal ID of this version: #1003679/4
Text MD5: 4b53453941bd200504f4d1d27e0197b8
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-08 21:45:19
Source code size: 272 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 538 / 516
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1003679 & http://1003679.tinybrain.de