what should do? if

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

Recommended Answers

All 3 Replies

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.

how bout additem()? additem() not deprecated?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.