package test; import java.net.URL; import java.util.ResourceBundle; import javafx.fxml.Initializable; import javafx.scene.control.Label; public class FXMLTestController implements Initializable { public Label messageLabel; @Override public void initialize(URL location, ResourceBundle resources) { System.out.println("messageLabel ID = " + messageLabel.getId()); } }