View Single Post
  #1 (permalink)  
Old 07-09-2009, 04:04 PM
IamKira IamKira is offline
Member
 
Join Date: Jul 2009
Posts: 11
Rep Power: 0
IamKira is on a distinguished road
Default How to clone a JTable?
Hi,

I would like to create a ByVal copy of a JTable, however, the TableModel is not being cloned; I mean the clone and the original Table do have the same model and changing one changes the other too. Do I need to extend the DefaultTableModel and make it implement the CloneAble Interface as well? (And thus every object a JTable uses?) Or is there a nicer way to do this?

Thanks for help!
Reply With Quote