Posted By:
Bahman_Barzideh
Posted On:
Wednesday, May 14, 2003 02:21 PM
What you do depends on your application. A
JTable by default uses a
DefaultTableModel. If this is what you are using, you can take advantage of either of the 2
addRow () or the 2
insertRow () methods provided by this class to accomplish what you want. If you have provided a custom
TableModel then you need to make provisions for adding rows in the customized
TableModel.
Also take a look at
How to Use Tables for information on
JTable which is what I assume you are using.