In this question I see that a field is private. However, when I do
public MyController
{
@FXML
private Button button;
}
I get
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project TEMP: Compilation failure MyController.java:[x,x] button has private access in MyContoller -> [Help 1]
Is this problem in maven or in javafx?
我只能肯定地说这不是JavaFX问题,不确定您如何配置编译器插件,但问题一定在那里
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.