Java – do not update the fxml file in eclipse

When I use JavaFX, I encounter a strange behavior in eclipse. When I modify the fxml document in scenebuilder, I save the changes, but when I run the project, my changes do not appear. After refreshing the relevant fxml, I record the changes when I run the application. I have to do this every time I use scenebuilder to change something, Any explanation or solution to this problem?

Solution

The problem is that eclipse does not track external changes to files by default. When you execute an application, you will not execute the contents in the "SRC" folder, but copy them to the contents in the "bin" folder through eclipse

You can make open source active polling in the eclipse Preferences page "general > workspace" by selecting "use native hook or polling refresh"

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
分享
二维码
< <上一篇
下一篇>>