Re: [Biojava-l] Navigating a Vector

2004-11-01 Thread Francois Pepin
To: <[EMAIL PROTECTED]> > cc: (bcc: Mark Schreiber/GP/Novartis) > Subject:[Biojava-l] Navigating a Vector > > > I'm trying to iterate through a database using a Vector and > previous/next JButtons. How do I find

Re: [Biojava-l] Navigating a Vector

2004-11-01 Thread Rahul Karnik
[EMAIL PROTECTED] wrote: I'm not sure you can, especially because iterators on Vectors are not gaurenteed to operate in any special order. If possible you should use an ArrayList or LinkedList. In this case you will be able to find the index or even ask for items by their index. While order is n

Re: [Biojava-l] Navigating a Vector

2004-11-01 Thread mark . schreiber
t out of a Vector as it is a Collection. - Mark "Ng, Peter" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/02/2004 02:32 AM To: <[EMAIL PROTECTED]> cc: (bcc: Mark Schreiber/GP/Novartis) Subject: [Biojava-l] Navigating a Vec

[Biojava-l] Navigating a Vector

2004-11-01 Thread Ng, Peter
I'm trying to iterate through a database using a Vector and previous/next JButtons. How do I find the Vector index of the current record so I can navigate forward and back in the Vector? Thanks in advance! -- Regards, Peter Ng Laboratory Information Management Coordinator Laboratory Services BC