java中getText() 被哪种方法取代
javax.swing.JPasswordField中的过时StringpassWord=passWd.getText();过时...
javax.swing.JPasswordField中的过时
String passWord=passWd.getText();过时 展开
String passWord=passWd.getText();过时 展开
3个回答
展开全部
从jdk中获知,该方法被getPassword替换,试试?
Returns the text contained in this TextComponent. If the underlying document is null, will give a NullPointerException.
For security reasons, this method is deprecated. Use the * getPassword method instead.
Returns:
the text
@deprecated
As of Java 2 platform v1.2, replaced by getPassword.
Returns the text contained in this TextComponent. If the underlying document is null, will give a NullPointerException.
For security reasons, this method is deprecated. Use the * getPassword method instead.
Returns:
the text
@deprecated
As of Java 2 platform v1.2, replaced by getPassword.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询