• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaFX nested controllers error : the controller of the include fxml file generate error

 
Houssam Kourdache
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i hase issue with nested controllers in my jaavFX app. I have an fxml named pageOne.fxml file and his controller pageOneController.java,   the file pageOne.fxml is included in Main.fxml file (his controller is MainController.java).
the error is :




MainController


Main.fxml



pageOne.fxml



pageOneController.java

 
Knute Snortum
Sheriff
Posts: 3329
84
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Houssam.

When you post code, please be sure to UseCodeTags (that's a link).  I'll do it for you this time.
 
Knute Snortum
Sheriff
Posts: 3329
84
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you're showing enough of the problem.  I'd like to see the entire stack trace.  Also, I'd like to see how you're loading the FXML files.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!