You will see that those components do not override Object's clone method, so that it is still protected, not public. This means you can't [edit!] use it directly.
I would suggest you describe your problem better. What are you doing, what is your goal? I've never had to make a copy of a GUI component like that, so I'm wondering what's going on.
... on top of that you *can* move a component from one container to another, i.e.
it will be automagically removed from the first container to the other. It's not cloning
as BDLH already pointed out but maybe you can use that feature some day.
Comment