英文:
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 ??
专注分享java语言的经验与见解,让所有开发者获益!
评论