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

6
LINES

< > BotCompany Repo | #1003354 // swingEnterPassword

JavaX fragment (include)

1  
static S swingEnterPassword(S msg) {
2  
  new JPasswordField pf;
3  
  int okCxl = JOptionPane.showConfirmDialog(null, pf, msg, JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
4  
5  
  ret okCxl == JOptionPane.OK_OPTION ? str(pf.getPassword()) : null;
6  
}

Author comment

Began life as a copy of #1003353

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003354
Snippet name: swingEnterPassword
Eternal ID of this version: #1003354/1
Text MD5: 784c39f2d318de18db078b81f2aec680
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-20 17:19:14
Source code size: 255 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 530 / 534
Referenced in: [show references]