I have a table with combined columns for all the names of a company's accounts (see figure). I want to configure the jtable to show the data as in the image. I have read about the table tree but I have not achieved the format of the figure.
Asked
Active
Viewed 27 times
0
-
`JTable` doesn't (easily) support "grouping". One approach might be to use multiple tables and place them all within a single `JScrollPane` instead – MadProgrammer Dec 02 '18 at 22:25
-
Has the format of the table changed yet can I get it with Jtable? – Fabian Inoñan Zapata Dec 02 '18 at 22:39
-
No, not with a single `JTable` – MadProgrammer Dec 02 '18 at 22:48
-
What components do I need to get it? just a jscrollpane to contain the multiple tables? – Fabian Inoñan Zapata Dec 02 '18 at 22:55
-
You could get away with that. You could also use a `JLabel` as the "primary" grouping header/seperator, depending on your overall needs – MadProgrammer Dec 02 '18 at 23:07