Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java accessing static variables from event handler

public class Controllers {

        private static MainController mainController;

        public static MainController getMainController() {
            return mainController;
        }

        public static void setMainController(MainController mainController) {
            Controllers.mainController = mainController;
        }

        public static void setMainControllerLoader(FXMLLoader mainControllerLoader) {
            Controllers.mainController = mainControllerLoader.getController();
        }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #accessing #static #variables #event #handler
ADD COMMENT
Topic
Name
3+6 =