Hi All,
I have a query which im hoping someone will be able to answer for me please.
Within the main method i have the following two statements:
As you can see from the above code, i am using the same object (dbCon) to invoke the same method, that takes a jComboBox object and adds items to a list from a database.
Here is the code for the method im invoking:
However my problem is that the second combo box is not getting populated with the data i want to add from the database - only the first combobox is being populated with the required data. On the other hand, when i change the combo boxes around within the first set of statements, DispEndCombo2 gets populated whereas DispEndCombo1 doesnt.
What im wondering is why the second statement is not working for populating the combobox - do i need to use different objects (i.e. dbCon and another) for this to work?
I thought that the same object could be used here however i could be wrong.
Hope this makes sense
Thanks in advance
John Paul