Hi everyone, i need some suggestion regarding the display of the values of two database table in a single JTable. Can anyone help me to get the proper way of how to do it. Actually i need to show the comparison of the two tables in the JTable by displaying the values of the two tables in the JTable.

Thanks in advance.

It's no different than displaying any other data set in a table. Create a table model that returns the values for a given cell. You can do that any way that you wish - a single result set from a query, two individual result sets that you manage by index, etc.

The table model just needs a method to getValueAt(row,col) . How you return that information is completely up to you: Creating a Table Model