if (copy.selected!=null) {\r
selected = new Vector();\r
for (int i=0,j=copy.selected.size(); i<j; i++) {\r
- selected.setElementAt( ((Integer) copy.selected.elementAt(i)), i);\r
+ selected.addElement(copy.selected.elementAt(i));\r
}\r
}\r
if (copy.hiddenColumns!=null) {\r
- hiddenColumns=new Vector();\r
+ hiddenColumns=new Vector(copy.hiddenColumns.size());\r
for (int i=0,j=copy.hiddenColumns.size(); i<j; i++) {\r
int[] rh,cp;\r
rh = (int[])copy.hiddenColumns.elementAt(i);\r
if (rh!=null) {\r
cp = new int[rh.length];\r
System.arraycopy(rh, 0, cp, 0, rh.length);\r
- hiddenColumns.setElementAt(cp, i);\r
+ hiddenColumns.addElement(cp);\r
}\r
}\r
}\r