I am creating a Java program that displays several graphs based on user input. I have created two JavaFX Application classes for two different styled graphs (Barchart and Piechart). I am now creating a main application class that will contain my full UI. From this class, I want to call the graph classes based on user input (ie when you click on the "display bar chart" button, the associated method will call the Barchart application class). Is this possible?
The classes are as follows:
Main UI: ChangeSolutions.java
Bar graph: CATGraph.java
Pie chart: Quarterly.java