I am a little stumped on how to get started on this project I have in front of me. I simply need to create a calendar on a javafx stage for the current date with two simple next / prior buttons to go between months.
So far I have just created the minimum, a blank stage to appear.
public class Calendar extends Application{ @Override public void start(Stage primaryStage) throws Exception { primaryStage.setTitle("Java Calendar"); Pane base = new Pane(); Scene scene = new Scene(base, 500, 300); primaryStage.setScene(scene); primaryStage.show(); } public static void main(String[] args){ Application.launch(args); }
}
I had noticed under java documentation that there is a calendar class under java.util, however the documentation was rather confusing to me on how to implement it. Basically I want to ask, what is the best way to approach this? Would you be able to show me through the basics of how this or another Calendar class works? Or would I be best off using a grid pane, and switch between what scene is shown on the stage when I click the next or prior button?
Thank you so much for your time.