1 | static bool confirmOKCancel(final Component owner, final S msg) { |
2 | ret isTrue(swingAndWait(func { |
3 | JOptionPane.showConfirmDialog(owner, |
4 | msg, "JavaX", JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION |
5 | })); |
6 | } |
7 | |
8 | static bool confirmOKCancel(S msg) { |
9 | ret confirmOKCancel(null, msg); |
10 | } |
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: | 585 / 667 |
Version history: | 1 change(s) |
Referenced in: | [show references] |