I'm extremely new to Java. I have set up a database using a vector. Everything runs fine. When I select an item from my database, it goes to a table in my program. However, I can select the item a million times and it will show up a million times.
How can I indicate that I have added a duplicate item to the list and keep the user from being able to select the item again? If anyone has any ideas...or can tell me where I can find information.
void cmdRequest_actionPerformed(ActionEvent e) {
System.out.println("hit the add to list button"
;
DogObject dg = (DogObject)vDog.elementAt(iTrack);
vSelect.addElement(dg);
fillCombo();
}
How can I indicate that I have added a duplicate item to the list and keep the user from being able to select the item again? If anyone has any ideas...or can tell me where I can find information.
void cmdRequest_actionPerformed(ActionEvent e) {
System.out.println("hit the add to list button"

DogObject dg = (DogObject)vDog.elementAt(iTrack);
vSelect.addElement(dg);
fillCombo();
}