I took one custom text box image, in that text box I want to show “Enter password” and when I focus on to that text box field and enter any charectors it converts to asterisk symbols like password edit field.
I want like this below Image:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think it is possible by only overriding
paint(..)of theEditfield. May be following steps can achieve the desired behaviour:super.paint(..), it will paint the field with fake text.setText(..)to set original text back.Draft implementation:
Above code doesn’t paint a border.
We need to set a monochrome font for the problem you have mentioned in comment. Here is a sample code: