I am trying to display different content in a certain scene based on the button the user selects in the previous scene. I have tried using public static void main(String[] args)
and timers to get this to work, but I just can't.
How do I get contentSelect() to run upon the opening of the scene? I know this should be simple, but I cannot get it to work for the life of me.
package application;
import java.time.Duration;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
public class GrammarTestController {
private static int picSelect=0;
@FXML
private Label title;
@FXML
private Label info;
@FXML
private ImageView image;
//Will decide which type of content to display
private void contentSelect(){
}
}