Topic: 求用*显示来代替字符的程序.

  Print this page

1.求用*显示来代替字符的程序. Copy to clipboard
Posted by: jjl0604
Posted on: 2005-10-07 20:32

向文本框输入密码字段的字符.要求用*号显示这些字符,这程序怎么写.

2.Re:求用*显示来代替字符的程序. [Re: jjl0604] Copy to clipboard
Posted by: q_yuan
Posted on: 2005-10-08 00:03

在SWING 中有一个JPasswordFiled这个组件!

3.Re:求用*显示来代替字符的程序. [Re: jjl0604] Copy to clipboard
Posted by: q_yuan
Posted on: 2005-10-08 00:11

在AWT中:
TextField textField = new TextField();
textField.setEchoChar('*');
在SWING中:
JPasswordField text = new JPasswordField();

4.Re:求用*显示来代替字符的程序. [Re: jjl0604] Copy to clipboard
Posted by: worldstar
Posted on: 2005-10-08 16:34

楼上说的极是啊!


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923