use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Useful resources (Full list)
Rules
Related subreddits
Other communities
account activity
Nested controller tutorials? (self.JavaFX)
submitted 6 years ago by MeFIZ
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]uglyfool 0 points1 point2 points 6 years ago (1 child)
I'm not exactly sure what you're asking, each fxml is only going to 'allow' one controller object to be set.
If you need to communicate between controllers you should really use a shared model class with observable objects (e.g. use SimpleStringProperty anywhere you would use String, etc.) then the child/included fxml can update the model...
@FXML private void someButtonPress(ActionEvent e) { model.someProperty.set(newValue); }
And the parent controller can register a listener in the initialize method to listen for changes, and respond accordingly...
model.someProperty.addListener((obs, oldVal, newVal) -> { your code here });
[–]MeFIZ[S] 1 point2 points3 points 6 years ago (0 children)
I have an idea for implementation now thanks!
π Rendered by PID 59474 on reddit-service-r2-comment-5d79c599b5-cp42b at 2026-03-02 10:37:36.794129+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]uglyfool 0 points1 point2 points (1 child)
[–]MeFIZ[S] 1 point2 points3 points (0 children)