displaying an object in the list
I have a custom Object with many parameters:
Coffee c = new Coffee();
Coffee has parameters such as brand, instant, price, etc.
When I add it to the list with model.add(0, c), on the list it displays something weird instead of displaying the set parameters. What's the trick to get it to display something like this when added to the list:
Coffee instant, Nescafe, etc...
The list is a JList and I am using a DefaultListModel.
Thanks for any help in advance!!

