JPasswordField textfield = new JPasswordField("Initial Text"); textfield.setEchoChar('#'); textfield.addActionListener(actionListener);
JPasswordField textfield = new JPasswordField("Initial Text"); textfield.setEchoChar('#'); textfield.addActionListener(actionListener);