Horizontal List Box and JScrollPane
Posted on 2003-11-24
I have an array of Integers, which I want to display on my Panel HORRIZONTALLY(if there is such a word!). I want a Scrollbar under this list to allow the user to move across a list, and select an item. I want to add action listeners on the list which will reflect selection of an item.
What should I use? The array will have fixed 200 elements. I tried using JScrollPane with a listbox, but didn't know if that was the right way to go.
I have to figure this out asap.