> I'd like change JTextField (input) to JPasswordField in JOptionPane
> class in showInputDialog method? Is it impossible? Please help!!!
Maybe not impossible, but probably more work than it is worth. Instead,
try using showMessageDialog() and specify a JPasswordField (or perhaps a
JPanel with a JLabel and a JPasswordField) as the message component?

Signature
Regards,
John McGrath
Try using the showInputDialog method in JOptionPane class.
See the doc of JOptionPane hope that u'll get some idea.
Regards,
ackumar