I'm puzzled right now as to what to do, maybe some of you Java dieties can help me.
Basically, I have an auction system ( application, not applet ) for a popular game. Players can auction items. Right now, you can pick a category and it displays all the auctions from the category. It does this by sending the server a message. The server then queries the MySQL database and sends back a list of auctions. They are all added to the jList.
What I want to do is improve on the listing of auctions to create icons for each list item signifying different things, such as a locked auction. I can get the info on the server-side, no problem, but actually listing them is what puzzles me.
Now, I could use a ListCellRenderer, but I before I start I want to be sure of exactly how I want to tackle it. I'm a bit confused as to how to make the renderer. In the example I have seen, it adds a row for each item in an array. It looks all fine and dandy, but does that kill the purpose of adding rows manually? Furthermore, would it repaint itself every time I got a new list from the server?
Any replies are appreciated.
// :: Peyton