This week's book giveaway is in the Java in General forum. We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line! See this thread for details.
Hi,
In a login applcation i have used the jPasswordField control. To retrieve the user input i've used as usual method getText(). And after getting the value will be compared with the database.
but first i cant retrive text from the passwordfield
please anyone tell me how this problem can be sort out.
Even then, you shouldnot be using getText()
From the JPasswordField API
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.