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

[751 byte] By [padmasumaa] at [2007-10-2 15:23:21]
# 1
First, throw out the idea of using inheritance. You do not say "I want to build a house, and I want to make sure I use a jigsaw when doing it." You decide to build a house and to use whatever tools are necessary to do so, and if a jigsaw turns out to be necessary, THEN you use
Drake_Duna at 2007-7-13 14:35:56 > top of Java-index,Security,Event Handling...