在JavaFX中,如何将字段声明为private?

huangapple 未分类评论47阅读模式
英文:

In JavaFX how can fields be declared as private?

问题

在JavaFX中,您可以使用SceneBuilder创建一个场景,并创建一个包含与GUI中元素相对应的FXML字段的类... JavaFX是否会在运行时创建该类的对象... 如果是这种情况,这些字段如何声明为私有?

英文:

In javafx you make a scene using scenebuilder and make a class that contains the FXML fields corresponding to the elements in the GUI ....Does JavaFX make an object of that class at runtime ....and if this is the case how can these fields be declared as private ??

huangapple
  • 本文由 发表于 2020年4月8日 03:58:59
  • 转载请务必保留本文链接:https://java.coder-hub.com/61088426.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定