Password table in Java Program
Password table in Java Program
import javax.Swing.*;
import java.awt.event.*;
class PassTextTest
public Static void main(String args[])
{
JFrame frame =new JFrame();
Container cp =frame.getContentPane();
JPanel panel =new JPanel();
JPasswordField pw =new JPasswordField("Enter",10);
pw.setEchoChar('&');
panel.add(pw);
cp.add(panel);
frame.pack();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
0 coment�rios:
Post a Comment