Valhalla Legends Archive

Programming => General Programming => Topic started by: Nova1313 on April 13, 2003, 10:49 PM

Title: Java: Jlist multicolumn with pictures?
Post by: Nova1313 on April 13, 2003, 10:49 PM
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.
Title: Re:Java: Jlist multicolumn with pictures?
Post by: Banana fanna fo fanna on April 14, 2003, 06:48 PM
You might have to create a custom data model. Otherwise you should look into JEditorPane and generate HTML for the list.
Title: Re:Java: Jlist multicolumn with pictures?
Post by: Nova1313 on April 16, 2003, 03:55 PM
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.
Title: Re:Java: Jlist multicolumn with pictures?
Post by: Banana fanna fo fanna on April 16, 2003, 05:45 PM
www.limewire.org

It's open source and they put images in their lists afaik.