Hello, I have a class Photo which contains 3 String member variables(name, title and date), and I am using another class which extends AbstractListModel to handle a JList. Inside my AbstractListModel class, I have a List object which will hold Photo objects, like this:
The thing is that my JList displays the current Photo object's reference, like Photo@f6a746 for example. Any ideas how I can still have my JList hold Photo objects but display its title attribute instead of the Photo object itself?...So the JList would actually be displaying: Photo.getName() instead of Photo.
"I wrote an all-Java OS in 1998 but can't be sure if or how it works... it's still booting"