0

what should do? if

show() replace with setVisible(True) then..
getText() replace with ?
addItem() replace with ?

2
Contributors
3
Replies
17
Views
3 Years
Discussion Span
Last Post by stultuske
2

titus.k.s: a few steps towards resolving your issue:
1. being directed to the api of JPassWordField (here)
2. reading the .getText description: (here)
and reading this part:

Deprecated. As of Java 2 platform v1.2, replaced by getPassword.
Fetches a portion of the text represented by the component. Returns an empty > string if length is 0.
For security reasons, this method is deprecated. Use the getPassword method > instead.

Edited by pritaeas: Removed the linked post, so copied the contents here.

0

there is no addItem method for a JPasswordField (yet), so chances of it being deprecated (already) are rather small.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.