This was a question at a java test I took. The question was the one in the title. I answered 'a model'. Apparently, I was wrong and the answer is 'a renderer'. Why?
Asked
Active
Viewed 20 times
1 Answers
1
The model just holds the data which you want to display. The renderer takes the objects from the model and displays them in your list. It defines how the object values are displayed.
See How to Use Lists:
A list uses an object called a cell renderer to display each of its items.

Kai
- 38,985
- 14
- 88
- 103