We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is my scene :
I want to change the text color to white. I've tried google but I cant find any identical issue. So, how? Thanks in advance.
The text was updated successfully, but these errors were encountered:
if this is a normal text, you can try by adding a style: JFXTextFieldName.setStyle("-fx-text-inner-color: red");
JFXTextFieldName.setStyle("-fx-text-inner-color: red");
Otherwise, if this is a hint text you should try this: JFXTextFieldName.setStyle("-fx-prompt-text-fill: red");
JFXTextFieldName.setStyle("-fx-prompt-text-fill: red");
both works for me.
Sorry, something went wrong.
you can set them through css using the following code
.jfx-text-field, .jfx-password-field { -fx-prompt-text-fill: WHITE; -jfx-focus-color: WHITE; -jfx-unfocus-color: WHITE; }
Regards,
you can use this in your .css .jfx-text-field { -fx-text-inner-color: white; }
white is the text color, or you can use hexadecimal, #ffffff(white)
No branches or pull requests
This is my scene :
I want to change the text color to white. I've tried google but I cant find any identical issue.
So, how? Thanks in advance.
The text was updated successfully, but these errors were encountered: