Results 1 to 3 of 3
  1. #1
    ying7690 is offline Member
    Join Date
    Dec 2011
    Posts
    1
    Rep Power
    0

    Default how to bind data into combo box

    I want to get data from microsoft access, but i do not know how to bind data into the combo box??? can any one tell me how to do that????

  2. #2
    FlyNn is offline Senior Member
    Join Date
    Feb 2010
    Posts
    128
    Rep Power
    0

    Default Re: how to bind data into combo box

    Hi ying, I think you are in the work forum. Does your problem have to do anything with Java?
    Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

  3. #3
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,234
    Rep Power
    7

    Default Re: how to bind data into combo box

    1) Create an empty DefaultComboBoxModel
    2) Create an SQL statement to read the data from the database
    3) Iterate through the ResultSet and add each item to the model
    4) Create a JComboBox using the model.

Similar Threads

  1. how to bind the class into a .jar
    By nirasiva in forum New To Java
    Replies: 4
    Last Post: 06-03-2011, 08:53 AM
  2. dynamically populate the city combo box based on the values of state combo +ajax+jsp
    By sandy1000 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-29-2010, 10:00 AM
  3. How to bind soap header using jax-rpc
    By jadeite100 in forum XML
    Replies: 0
    Last Post: 12-05-2010, 06:17 PM
  4. bind slider to column in DB
    By nicromonicon in forum New To Java
    Replies: 0
    Last Post: 01-12-2009, 04:14 PM
  5. creation of one combo box form another combo box
    By er.tyagigaurav in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-09-2008, 03:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •