Array, ArrayList, Table object in a JList?

T

the clansman

Hi,

I'm writing a small applet in which I will access records from a table on a
database. I want to display the records in a JList kind of object. So far
no problem. I'd like to be able to store not only the a value but the
record number of that value in the same structure (like the ListIndex
property in VB). When accessing a specific item in the JList, I'd like to
be able to get the associated record number in the table. Can I put an
array in a JList or should I use an ArrayList? Can I store a "table" object
in a JList where I could hide the record numbers.

Thanks for your ideas.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top