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

11
LINES

< > BotCompany Repo | #1022901 // showConfirmDialogInBottomRightCorner

JavaX fragment (include)

1  
static JFrame showConfirmDialogInBottomRightCorner(S question, Runnable action) {
2  
  ret showPackedFrameInBottomRightCorner(
3  
    centerAndSouthWithMargins(jlabel(question),
4  
    hgridWithSpacing(
5  
      jThreadedButton("OK", r {
6  
        disposeWindow(heldInstance(JButton));
7  
        callF(action);
8  
      }),
9  
      jCancelButton("No")
10  
    )));
11  
}

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: 155 / 187
Referenced in: [show references]