Troppmann, Tom преди 4 години
родител
ревизия
ccdea104a2
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/api/EmailNotification.java

+ 2 - 1
src/api/EmailNotification.java

@@ -11,6 +11,7 @@ import javax.swing.JButton;
 import javax.swing.JFrame;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
+import javax.swing.JPasswordField;
 import javax.swing.JTextField;
 
 import org.apache.commons.mail.*;
@@ -75,7 +76,7 @@ public class EmailNotification {
 		JTextField usernameTextField = new JTextField(_info.Username);
 		infoPanel.add(usernameTextField);
 		infoPanel.add(new JLabel("Password:"));
-		JTextField passwordTextField = new JTextField(_info.Password);
+		JPasswordField  passwordTextField = new JPasswordField (_info.Password);
 		infoPanel.add(passwordTextField);
 		infoPanel.add(new JLabel("From Email:"));
 		JTextField fromEmailTextField = new JTextField(_info.FromEmail);