请教:Java AWT中密码输入框在哪

2025-02-25 06:38:16
推荐回答(1个)
回答1:

swing用JPasswordField。awt用TextField,setEchoChar方法设定了回显字符就是输入password的。