B
bruce
I'm trying to load a JComboBox from my database. Here is
the scenario that I am using. The JComboBox is NOT being
loaded correctly so, obviously, I'm doing something wrong.
Appreciate some help.
Scenario:
1. Place a JComboBox on a JFrame.
2. Right Click on the JComboBox.
3. Select "Bind" and Click on "elements".
4. Click "Import Data to Form..."
5. Select the database connection to use. [I have the correct
connection set up]
6. Select the table to use.
7. Run the project.
The JComboBox is filled with two items:
Census.Places[placesid=1]
Census.Places[placesid=2]
> My package is "Census"
> NetBeans created is class "Places" that seems to contain code to
handle this dynamic loading.
> My database contains two fields: placeid and place
> Primary Key is placeid, datafield is place.
> There are two records in the database.
So, it looks like I'm close but not close enough!!!
Appreciate any suggestions on what I'm doing wrong and what I need to
get this working.
Thanks...
Bruce
the scenario that I am using. The JComboBox is NOT being
loaded correctly so, obviously, I'm doing something wrong.
Appreciate some help.
Scenario:
1. Place a JComboBox on a JFrame.
2. Right Click on the JComboBox.
3. Select "Bind" and Click on "elements".
4. Click "Import Data to Form..."
5. Select the database connection to use. [I have the correct
connection set up]
6. Select the table to use.
7. Run the project.
The JComboBox is filled with two items:
Census.Places[placesid=1]
Census.Places[placesid=2]
> My package is "Census"
> NetBeans created is class "Places" that seems to contain code to
handle this dynamic loading.
> My database contains two fields: placeid and place
> Primary Key is placeid, datafield is place.
> There are two records in the database.
So, it looks like I'm close but not close enough!!!
Appreciate any suggestions on what I'm doing wrong and what I need to
get this working.
Thanks...
Bruce