I was just wondering how you stop the combo box from displaying different instances of the same value.
In the combo box i have villages and towns names e.g doolin. onli thing is i have many businesses from doolin on the database so when i pull the town field for the combo box i get doolin in the cobmo box several times.
You probably have to eliminate the duplicates from the data you are inserting into the combo box.
One way to eliminate dups is to add all your data to a Set (eg TreeSet,use the addAll method) because Sets don't contain duplicates. Then you can simply convert the Set to an array (toArray method) and use that array to populate the combo box. The code is shorter than this description!
See there not really duplicates each business has to have a town or it won't be found ever inless i physically go through the database to find it so a place like doolin will have 30 B&Bs so when i fill the combobox with the town field i get doolin showing up thity times but i want it to show up onli once and be used as a reference for the thirty b&b do get what i mean??
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...