This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Clone JTable" Watch "Clone JTable" New topic

Clone JTable

Udara Amarasinghe
Ranch Hand

Joined: Aug 17, 2009
Posts: 109

I wrote class that can clone java objects but when it clone JTable it get error something like this 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: 2152
Cross post:

Be Forthright When Cross Posting To Other Sites
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

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 agree. Here's the link:
subject: Clone JTable
Similar Threads
JTable renderer - Change the backColor of 2 specific rows.
Jtable loading after being saved problem
error while reading objects from file
JTable ........