Help Cloning Objects
- From: "Bill" <wfs4@xxxxxxxxxxxxx>
- Date: Sat, 26 Aug 2006 09:12:03 -0400
Hi All,
I currently have a database 'explorer' application - show lists of
tables; ddl etc etc
I'd now like to be able to 'clone' a snapshot view into another
frame....
frame 1
has a jpanel_X + scroll pane + jtable with data etc
new frame 2
has a jpanel_Y - which I'd like to reflect the exact same contents as
frame 1
I've tried
panel_Y = panel_X.clone();
but get
Error(35,26): method clone() has protected access in class
java.lang.Object
I've added the Cloneable interface to jpanel_X - but I still get the
error message....
TIA
Bill
---------------------------------------------------------------------------------------------------
public class V_Db2Explorer_ListView extends JPanel
implements ActionListener, Cloneable {
.......
public interface Cloneable {
}
---------------------------------------------------------------------------------------------------
.
- Follow-Ups:
- Re: Help Cloning Objects
- From: Dieter Lamberty
- Re: Help Cloning Objects
- Prev by Date: Re: JCreator beginners question
- Next by Date: having much space in menus before the icon
- Previous by thread: Class sharing info
- Next by thread: Re: Help Cloning Objects
- Index(es):
Relevant Pages
|