static bool confirmOKCancel(final Component owner, final S msg) { ret isTrue(swingAndWait(func { JOptionPane.showConfirmDialog(owner, msg, "JavaX", JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION })); } static bool confirmOKCancel(S msg) { ret confirmOKCancel(null, msg); }
Began life as a copy of #1003679
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: | #1003680 |
Snippet name: | confirmOKCancel - Swing confirmation dialog (now thread-safe) |
Eternal ID of this version: | #1003680/2 |
Text MD5: | 6d3157901c58e03160394697c0cd438a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-24 11:16:59 |
Source code size: | 308 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 676 / 762 |
Version history: | 1 change(s) |
Referenced in: | [show references] |