I have to make a JTable which partely has colors and partely has to display strings.
Here is a quick drawing:
The first colonm contains strings while the rest of the colomns contain colors. the header contains only strings.
I defined the header (which is not really important for this question) as an array of strings and I defined the data of the table as an Object[][] data
When I tried to do something like data = {"Room 1", new color(242, 242, 242)};
the compilor gives me: Type mismatch: cannot convert from Color to Object[]
How can I display the Colors?