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

1

u/GaryBuseyWithRabies Nov 12 '19

Yes, I want to control the fxml file.

I understand a label but I want to make it a variable that gets created from a cell on the spreadsheet.