S
Sveta
Hello,
I am totally novice to Java and trying to teach myself the language (which
doesn't seem to work well).
I have created a bean called BC_Table. I then use it in a dialog 10 times
(in 10 different Cards of a StackCard) as TableBean1, TableBean2, TableBean3
etc (my GUI IDE doesn't allow me to set it as an array at this stage).
To be able to use these TableBeans easier, I had created an array of
BC_Table as:
BC_Table [] dummyBean=new BC_Table[stackCardNo];
How can I make dummyBean [] always update its values according to those of
TableBean1, TableBean2 etc
*and vice versa* -I want to use the array for all bean's "set" methods for
convenience then update TableBean1 etc- ??
(I had tried to create a method in which I was doing something like
dummyBean[0]=TableBean1; etc
but this doesn't seem to work. Also I am not sure if and how I could use
clone in this case).
Thanks in advance and sorry for the ignorant's question.
Svet
I am totally novice to Java and trying to teach myself the language (which
doesn't seem to work well).
I have created a bean called BC_Table. I then use it in a dialog 10 times
(in 10 different Cards of a StackCard) as TableBean1, TableBean2, TableBean3
etc (my GUI IDE doesn't allow me to set it as an array at this stage).
To be able to use these TableBeans easier, I had created an array of
BC_Table as:
BC_Table [] dummyBean=new BC_Table[stackCardNo];
How can I make dummyBean [] always update its values according to those of
TableBean1, TableBean2 etc
*and vice versa* -I want to use the array for all bean's "set" methods for
convenience then update TableBean1 etc- ??
(I had tried to create a method in which I was doing something like
dummyBean[0]=TableBean1; etc
but this doesn't seem to work. Also I am not sure if and how I could use
clone in this case).
Thanks in advance and sorry for the ignorant's question.
Svet