Thanks for sharing you code listing, however, it would be nice to know what your "concerns" are with the add and save buttons. May you could share what is happening now or what errors you see.
Being specific is a key to getting useful help in this forum.
Let me explain. I need to add a new row to JTable at the click of 'Add' button. To achieve this, I need deal with two classes.
* CalDataModel, which extends AbstractTableModel
* CalendarEvent, which extends JFrames and have buttons 'Add', 'Save' and 'Cancel'
What is happening is, Monthly GUI interface is getting displayed with dates, month and year. User can navigate through "<<" and ">>" buttons, and interface displays just like calendar. For example, you can navigate and see January 2005 or 2006 etc..
But when the user clicks on one of the days, an other interface is displayed, which is a JTable interface with rows and columns( actually you can browse backwards September 2004, and click on date 26, you will see that there are some appointments) with buttons 'ADD', 'SAVE' and 'CANCEL'.
When the user clicks on add it should add a new row to JTable interface and when the user should be able to add new information to the added row and use 'SAVE' button to save it in the database. There is also other feature which indicates that this particular date has some appointments saved in it. (for example, if you look at September 26th, 2004 the date is made bold and the rest of the dates are made normal, which will act as a reminder to the user that there are some appointments saved on that date).
My question is, my buttons on the JTable interface are in class CalendarEvent.java and to access rows and columns and also eventlist array is in class CalDataModel.java. I tried different ways of accessing outer class methods and functions. For some reason, I cannot figure out how to add a new row to JTable and save it to the database. This is part of school work. A quick response would be greatly appreciated. I hope I made sense in my explanation.