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

12
LINES

< > BotCompany Repo | #1003353 // New Swing Password Input Spike

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (88L/1K/3K).

1  
!752
2  
3  
p {
4  
  new JPasswordField pf;
5  
  int okCxl = JOptionPane.showConfirmDialog(null, pf, "Enter Password", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
6  
7  
  if (okCxl == JOptionPane.OK_OPTION) {
8  
    String password = new String(pf.getPassword());
9  
    print("You entered: " + password);
10  
  } else
11  
    print("cxl?");
12  
}

Author comment

Began life as a copy of #1003352

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: #1003353
Snippet name: New Swing Password Input Spike
Eternal ID of this version: #1003353/1
Text MD5: fe55e3adc15b7c01a6d2e757490f231c
Transpilation MD5: ce26d4584101f5c0b3bb3c0c6108d0e4
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-20 17:17:51
Source code size: 337 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 393 / 450
Referenced in: [show references]