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.
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.