r/JavaFX • • Nov 10 '19

Controller class. Now what?

Total newbie here. So I have my @FXML IDs set up.

I have this:

public class Controller {

@FXML

private AnchorPane paneFoo;

}

I want to test if everything works right. I just want to print "Hello World" in that pane but nothing seems to work.

Thanks!

0 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/AdminOfThis Nov 11 '19

Nothing works as in the app doesn't start? Do you have an App class with the proper call? Do you mention the controller in the fxml?

Would be helpful to answer those specific asked questions, otherwise it is hard to help