java - I'm getting array dimension missing error -
defaulttablemodel dt = (defaulttablemodel)jtable1.getmodel(); for(int = 0 ; i<date.size();i++){ dt.addrow(new object[](firstname(i),secondname(i),gender(i))); }
i'm getting array dimension missing error. why?
you should use { }
because row composed of array of objects.
dt.addrow(new object[]{g(i),ti(i),to(i)});
Comments
Post a Comment