Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • sainera
    Participant
    Post count: 3

    I have read one of your forum questions and followed the same thing to create a column
    TreeTableView table=gantt.getTreeTable();
    table.getColumns().add(new TreeTableColumn(“Resources”));

    After that, in order to add data in the table, I am writing the following code
    WorkPackages ac = new WorkPackages(packageName,resources);

    sainera
    Participant
    Post count: 3

    I did that, but it doesn’t seems to be working.
    Here is my code:
    class WorkPackages extends Row<WorkPackages, WorkPackages, Pack> {
    private String name;
    private double resource;

    public WorkPackages(String name,double resource) {
    setName(name);
    setResource(resource);
    }
    public void setResource(double resource) {
    this.resource=resource;
    }
    public double getResource() {
    return this.resource;
    }
    }
    }

    Only the name column is getting populated with the values.`

Viewing 2 posts - 1 through 2 (of 2 total)