I have a class:

Training{ Integer id; GregorianCalendar date; String title; ArrayList<Exercise> exercises; } 

In addition, each object in the list of exercises has its own list ArrayList<Set> sets .
In other words, in each workout there is a certain amount of exercise, and in each exercise there is a certain number of approaches. How to bring all this to TableVeiw ?

An example of the table I need

  • To get started, check out TreeTableView lestard.eu/2015/treetable_datamodel - I. Perevoz
  • How do you want it to look like a table? - Andrew Bystrov
  • Ultimately, I want to split it into two tables. The first will be training data (id, date, name), when you click on the row of the first table, the details of this workout are displayed in the second table. In the first, everything is already working. But with the second problem. From this point does not change. I need to display a nested list in one table. Ie: the first column is the name of the exercise, the second column is all the approaches in this exercise (the name of the exercise is duplicated in each row), better without duplication, but for starters at least :) - YARUSprog
  • Attach an approximate screenshot to the question how you want to see it. - Andrew Bystrov

0