Valhalla Legends Forums Archive | General Programming | Java: Jlist multicolumn with pictures?

AuthorMessageTime
Nova1313
I'm having a little problem. I'm using swing for my interface on my latest game

The server I'm connecting it to sends what games have which functions enabled.

In a listbox (I guess Jlist is the best for this)
id like to have 3 columns for pictures and 2 for text.

how would I go about making a multicolumn Jlist with pictures... or am I barking up the wrong tree using Jlist i posted on other java only forums that are popular but I recieved only 2 responses. both said they weren't sure if it could be done.

So any help is appreciated.
April 14, 2003, 3:49 AM
St0rm.iD
You might have to create a custom data model. Otherwise you should look into JEditorPane and generate HTML for the list.
April 14, 2003, 11:48 PM
Nova1313
right now I just added the names to a customdatamodel and thats how im doing it. I foudn out i can create tables in teh jlist and then put pictures in there. Someone on java ranch sent me docs on it. I have yet to try it though.
April 16, 2003, 8:55 PM
St0rm.iD
www.limewire.org

It's open source and they put images in their lists afaik.
April 16, 2003, 10:45 PM

Search