-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
TextField.selectAllOnFocusPolicy not working #961
Comments
Hmm, for me it works fine 😕 How do you focus the textfield? |
Okay, good to know. If you never ever clicked into that textfield via mouse (and only used tab) this works as expected. But if you once clicked into that textfield and later on jump in via tab again, it does not work. Looks like I need to live with that (or find a workaround in my app). Can I ask another question - do you know by heart if that can be enabled easily for spinners too? |
Okay, got it working for a JSpinner by subclassing this and setting the |
JTextArea是否也可以支持 PLACEHOLDER_TEXT 属性呢,比如和JTextField一样的FlatClientProperties.PLACEHOLDER_TEXT |
According to JTextField selects all text the first time it is set visible. and https://www.formdev.com/flatlaf/client-properties/#JTextField the default behaviour of focusing a textfield would be to select all text (like most UI frameworks do).
I could not make that working in my app - but this is not even working in your demo. I suspect it isn't working at all?
The text was updated successfully, but these errors were encountered: