Ejemplo n.º 1
0
  @Override
  public Object getValueAt(int row, int column) {
    Mueble obj = rows.get(row);

    // Change this to match your columns
    switch (column) {
      case 0:
        return row;
      case 1:
        return obj.cantidad;
      case 2:
        return obj.ID;
      case 3:
        return obj.tiempo_de_construccion;
      case 4:
        return obj.getMadera();
      case 5:
        return obj.color;
      case 6:
        {
          System.out.print("\nobj.getAtributosMueble() = " + obj.getAtributosMueble());
          return obj.getAtributosMueble();
        }
      case 7:
        return obj.despacho;
      case 8:
        return obj.getCiudadOrigen();
      case 9:
        return obj.getCiudadDestino();
      case 10:
        return obj.obtenerPrecioUnitario();
      case 11:
        return obj.obtenerPrecioTotal();
    }
    return null;
  }