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

11
LINES

< > BotCompany Repo | #1022901 // showConfirmDialogInBottomRightCorner

JavaX fragment (include)

static JFrame showConfirmDialogInBottomRightCorner(S question, Runnable action) {
  ret showPackedFrameInBottomRightCorner(
    centerAndSouthWithMargins(jlabel(question),
    hgridWithSpacing(
      jThreadedButton("OK", r {
        disposeWindow(heldInstance(JButton));
        callF(action);
      }),
      jCancelButton("No")
    )));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022901
Snippet name: showConfirmDialogInBottomRightCorner
Eternal ID of this version: #1022901/1
Text MD5: 58a25066ea0c67f27df2e8634bce79e7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 19:39:59
Source code size: 351 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 145 / 176
Referenced in: [show references]