• Welcome to Valhalla Legends Archive.
 

Java: Jlist multicolumn with pictures?

Started by Nova1313, April 13, 2003, 10:49 PM

Previous topic - Next topic

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.

Banana fanna fo fanna

You might have to create a custom data model. Otherwise you should look into JEditorPane and generate HTML for the list.

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.

Banana fanna fo fanna

www.limewire.org

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