1 JOptionPane + password Is there a simple way to use JPasswordField when calling JOptionPane.showInputDialog(message)? I mean, I know how to achieve that using some additional lines of code, but perhaps there is a very simple way?