set num of columns in java code