I Created two Jtable table1 and table2. I give table1 header to table2 by this code. 

```
table2.setTableHeader(table1.getTableHeader());

```

but i also want to give properties of table1 header to table2. like Sorting and Margin re-sizing.