access a lable on a Javafx page from app.java, complete newbie - Stack Overflow

admin2025-05-01  1

I have what I i think it a very basic beginner question

I am making my first javaFx application, and i need to know how to access lablel on the java fx page from the code in app.java

can anyone show me how to do this please?

I am loading the fxml like this

and the logic to produce the value i want to display on the label is here at String.(msg.payload)

转载请注明原文地址:http://www.anycun.com/QandA/1746101448a91687.html