Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholders in Username/Password field should disappear on field focus #11

Open
kenlimmj opened this issue Jul 17, 2013 · 4 comments
Open
Milestone

Comments

@kenlimmj
Copy link
Member

Current behaviour:

On field focus the username and password placeholders remain there and must be deleted automatically. They should be set to disappear on click to allow the user to type in the credentials.

@linanqiu
Copy link
Member

@yichenshen do you know how to do that? do I have to use SwingX ><

@yichenshen
Copy link
Member

Just add a listener that does setText("") on click.

@linanqiu
Copy link
Member

@yichenshen Lovely. Thanks so much :D

@kenlimmj
Copy link
Member Author

Almost there. Placeholder should reappear in the box after focus is taken away if nothing has been entered in the field.

@kenlimmj kenlimmj reopened this Jul 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants