This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Heres how I did it, I have class that extends JPanel displaying results. It has a method that takes an array of DataInfo and sets the result accordingly. The class that searches the DB recieves a reference of this and calls the method Hope that isnt too confusing
Adam Roberts - SCJP2, SCJD<br />insert witty something here
Joined: Jan 15, 2002
Well, When you implement the AbstractTableModel, the method getValueAt tells you table model which Vector or Array of Strings to use for the Table Data. So like in Observer/Observable, the way you notify any changes to the table model is by using the fireXXX methods (instead of setChanged(); notifyObservers() Hope this helps
Joined: Mar 17, 2002
Thanks Robert and Raphael, I have used fireTableUpdated method and was able to update the table with the new row values.. Have a Nice Day