posted 22 years ago
Hi,
I have this search routine which returns a populated ArrayList. I want to display these results in some useful form so that my users can select one or two, scroll through them etc.
I thought a JList would be the sort of thing I wanted, but having read the sun api documentation I am hopelessly confused. (Actually, this documentation always leaves me feeling like this - I mean, why have as their FIRST example of a JList .."
// Create a JList that displays the superclass of JList.class" ??? )
Anyway, what I want to know is how to add each component from the arrayList that I've got, to the JList that's going to display them. I'm missing something, aren't I ? I was really hoping for a .add() method.
Perhaps Yaroslav Chinskiy can help me out - sounds like you have already doen this (very basic) step ??
Thanks,
Kate