Menu driven application
I am designing a menu driven application. There is a main menu. (Eg. File->New, Open, Save, Exit). When I click on New a new Panel is loaded with the fields to be filled in. When I click on submit in the "New " Page, the data is added to the database in MySQL. Similary for Open, it loads a file and enters the information in the database. I want to design this using inheritance and jdbc.
I created a class for the database creation, another class called createMenu.java which has the main menu. The panels for new, open, save are in 3 different classes which extend the createMenu class. Is this approach correct? I have a problem here - how do I call the sub classes New, open and save to load when the menu is clicked?
Thanks

