Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Clone JTable  RSS feed

 
Udara Amarasinghe
Ranch Hand
Posts: 109
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2754
12
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!