回显 jpassword 字符一次然后隐藏它 [英] Echo jpassword character once and then hide it

查看:28
本文介绍了回显 jpassword 字符一次然后隐藏它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Swing 应用程序中,我想回显 jpassword 字段字符一段时间(1 秒),然后再次隐藏它.我想在用户输入一个字符后逐个字符地进行(当用户输入一个字符时,显示它,然后隐藏它.然后对于所有输入字符重复此操作).有人能告诉我这可能吗,如果是的话怎么办?提前致谢!

In my swing application I want to echo jpassword field character for some time (1 second) and then again hide it. I want to do it character by character after user inputs a character (When user inputs a character, show it, then hide it. Then for all input characters repeat this). Can someone tell me is it possible, if yes how? Thanks in advance!

推荐答案

我遇到了这个,这可能是一个好的开始,因为它显示输入的最后一个字符并显示密码的其余部分已被屏蔽但在此之后不会隐藏它一个设定的时间,所以你可能需要在设定的时间之后实现一个隐藏的事件 检查它在这里

I came across this which may be a good start as it displays the last char entered and shows the rest of the password is masked but doesn't hide it after a set time so you would probably need to implement an event to hide after set time Check it out here

这篇关于回显 jpassword 字符一次然后隐藏它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆