Hi, I am new to this board, and I have found the postings extremely helpful. Now I have a quick question for everybody. Thanks in advance. Everything works fine when doing "Search". The table does refresh after each search. After finishing implementing booking methods, JTable (extends AbstractTableModel) is not working properly. The user click the flight and a dialog will pop up asking the user for number of seats. After changing the data in the database successfully, I refresh the Jtable, the data in the row that I modified is no longer being displayed. Now it is just display a blank row. Fred
The approach that I took was to create a model that extends AbstractTableModel. I then created methods on it called getDataList and setDataList which contain the data that model works on. This allows the data to be changed without having to create a new model. I aslo created a method called objectUpdated which takes a int representing the index in the list of the object that was updated and the new object. This method then just fires a fireTableRowsUpdated event using the passed index as the row.. Any thoughts?