Random rnd = new Random();
for (int i = 0; i < n; i++) {
beans.add(new MyBean(nameb, priceb, quantityb, rnd.nextBoolean()));
}
public Class<?> getColumnClass(int column) {
switch (column) {
case 0:
return String.class;
case 1:
return Float.class;
case 2:
return Integer.class;
case 3:
return Boolean.class;
}
return Boolean.class;
}