JavaFX: null tableview message
•
Java
I am developing a java project using eclipse, JavaFX and tableview My application has three languages to choose from. Users can change it from the settings corner in the application. Everything goes well, but I notice that when a table is empty, it displays this message or prompt line:
As you can see, even if the user changes the language, this line still uses French (my system language), and I can't find any way to change it, change its content or hide it If anyone can help me, please post your thoughts or comments
thank you..
Solution
Each time you change the language, try to set an empty tableview message accordingly: tableview setPlaceholder(new Label(“Empty tableview!”));
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码