Java Doc 建議不要使用 JPasswordField.getText()

想獲得用戶在 Java Swing 中的 JPasswordField 控件中輸入的密碼內容,應該使用 JPasswordField.getPassword() ,而不是 JPasswordField.getText() 。由於安全的緣由,JavaDoc 中就是如此建議的: For security reasons, this method is deprecated. Use the getPa
相關文章
相關標籤/搜索