I want to call the method getRow() inside Controller from the main method of class Main in JavaFX. I really have no idea how to use JavaFX so I don't even know if that's something you should do with Controller.
public class Controller {
public Button button00 = new Button();
public int getRow(){
return GridPane.getRowIndex(button00);
}
}
I'm making chess in JavaFX (GridPane with 64 buttons) but I already have made a chess as a normal Java project and so I want to somehow make it work with JavaFX. But my original code needs the position of the selected playing piece (which in there was entered from the console) so i tried to get the position of the button which is selected. However I need that position in my main method and I don't know how to get it.