om1559
دوشنبه 14 شهریور 1384, 00:03 صبح
salam,
man mikham tooye "JOptionPane.showInputDialog", yek "JPasswordField" bezaram.
khode showInputDialog ye JTextField generate mikone. vali man be ye JPasswordField ehtiaj daram.
chejoori mitoonam inkaro konam?
mamnoon
in code mane:
// JPasswordField pf = new JPasswordField();
// String str = new String (pf.getPassword());
String pass = JOptionPane.showInputDialog(null,
"Enter password to access:",
"Demanding Password",
JOptionPane.QUESTION_MESSAGE);
man mikham tooye "JOptionPane.showInputDialog", yek "JPasswordField" bezaram.
khode showInputDialog ye JTextField generate mikone. vali man be ye JPasswordField ehtiaj daram.
chejoori mitoonam inkaro konam?
mamnoon
in code mane:
// JPasswordField pf = new JPasswordField();
// String str = new String (pf.getPassword());
String pass = JOptionPane.showInputDialog(null,
"Enter password to access:",
"Demanding Password",
JOptionPane.QUESTION_MESSAGE);