jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes Clone JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Clone JTable" Watch "Clone JTable" New topic
Author

Clone JTable

Udara Amarasinghe
Ranch Hand

Joined: Aug 17, 2009
Posts: 109

Hi
I wrote class that can clone java objects but when it clone JTable it get error something like this
java.io.NotSerializableException: sun.swing.table.DefaultTableCellHeaderRenderer$EmptyIcon
This is my clone class

This is the class i use Clone class to clone JTable



please is someone got idea to solve this
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2373
    
    8
Cross post: http://forums.sun.com/thread.jspa?messageID=10966273

Be Forthright When Cross Posting To Other Sites
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19728
    
  10

There's very little point in cloning Swing UI components. I wouldn't consider this a problem. (I would consider it a bad idea instead, really.)
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Clone JTable
 
It's not a secret anymore!