JDBC how do i get row to drop list?

Hi I was wondering if there was a way to store each row in its own string so I can add each one to a drop down. But the problem is I have to do it as if i have no idea how many rows there are. If just load the whole table into a dropdown it just puts the whole table one line. I need to get each row in its own string instead of concatinating the table into one string.
How can I take each row and put each individual row in a drop down or list?
Thanks
Kevin

I not sure I understand the question. Usually a row of data from a database table would be displayed in a JTable, not a JComboBox. Here is a thread that shows how to use a JTable:
http://forum.java.sun.com/thread.jsp?forum=57&thread=497641

Similar Messages

  • How do I get row numbers to appear automatically in a Numbers chart.  Just 1,2,3,4, etc.

    How do I get row numbers to appear automatically in a Numbers chart.  Just 1,2,3,4, etc.

    Awesome! I needed a pointer for technical documentation: a thick white stroke, with a thinner black stroke going right down the middle of it. I made a new stripe stroke style: Start: 37%, Width: %26. Then I did a gap color of Paper, gap tint: 100%. Stroke color is black. Round cap.
    Thanks Bob! You rock. This made my day!!!

  • How do I get the complete drop down Menu?

    How do I get the complete drop down menu when I CTRL-Mouse click a folder. I am getting MORE in the bottom, and I need it to be removed.
    Thanks

    The "More" area in the contextual menu's are bothering quite a few people. It's a feature of Leopard and can't be removed. There may be a hack available, but I'm waiting for some help from Apple...
    It reminds me of the Personalized menu's that Microsoft enables by default in some versions of MS Office for Windows. And it's a feature that I turn off immediately after installing Office for a client.
    Two steps forward, One Back.

  • When you open a new browser tab, underneath the box to type in what you are looking for is the recently visited list. I want to disable or delete this list...how do I get rid of this list???

    When you open a new browser tab, underneath the box to type in what you are looking for is the recently visited list. I want to disable or delete this list...how do I get rid of this list???

    The drop-down list displays items from your History and/or Bookmarks.
    You can control what shows (or nothing at all): Options > Privacy, "Location Bar" section. Options are:
    *History and Bookmarks
    *History
    *Bookmarks
    *Nothing
    See --> https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How to Hide some Rows in a List view Web Part using JavaScript ?

    How to Hide some Rows in a List view Web Part using JavaScript ?

     Here is the code that worked for me:
    var Elements = document.querySelectorAll('div[id=WebPartWPQ3] table[class=ms-listviewtable]>tbody tr .ms-vb-lastCell.ms-cellstyle.ms-vb2')
    for(var i=0, n = Elements.length; i < n; i++)
     if(Elements[i].innerHTML=="India")
    Elements[i].parentNode.setAttribute("style","display:none")
    WebPartWPQ3 -> ID of webpart Div
    ms-listviewtable -> class name of table in Div
    ms-vb-lastCell.ms-cellstyle.ms-vb2 -> classname of td to get text

  • One laptop died.  I have a new laptop now.  How can I get my Ipod song list on the new laptop without downloading each c.d.?

    My first laptop died.  I have a new laptop now.  How can I get my Ipod song list on the new laptop without downloading each c.d.?

    See this older post from another forum member Zevoneer covering the different ways to copy content from your iPod to your PC.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    Updated my iPhone 5 to ios7, in the App store after installing updates I now have a never ending list of the Apps I've updated.  How do I get rid of the list after they've been updated?  In the previous version I did not have an annoying permanent list.

    iOS 7 allows you to have your apps update automatically. Therefore, the list of what has been updated stays so that you can see what was updated, when and what the release notes say. It has been suggested that they list has a limit, much like Recents. Currently, there is no way for the user to delete the entries manually. Just try not to look at them.

  • We have a long list of disabled/deleted users in AD Somehow, they are still appeared as active user in Sharepoint Online. How do we get rid of those list? Hope you can advice. Thanks.

    we have a long list of disabled/deleted users in AD
    Somehow, they are still appeared as active user in Sharepoint Online.
    How do we get rid of those list?
    Hope you can advice. Thanks.

    SharePoint does not remove users from SharePoint permissions just because they were deleted/disabled in AD. This is to maintain referential integrity. In fact, when you delete a user from SharePoint, that user remains in the SharePoint content database,
    just marked as deleted.
    They do not have access to SharePoint given their account is deleted/disabled. But as far as automatically managing this, I'm not aware of a tool. On-prem there is Metalogix ControlPoint which does a great job of this, I haven't explored the O365 options.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How can i get out the reading list???

    how can i get out the reading list?

    This really needs to be posted in the Safari forum but I will answer it here.
    What do you mean by get out? You want to see the list? Clicking on the pair of glasses controls the display of the list. The glasses are in the gray bookmark bar. Click once to open and click again to close the reading list.

  • How do I get itunes to not list the same artist more than once?

    How do I get ituens to not list the same artist more than once?  I have tried editing the info, sorting different ways and sometimes it works and sometimes not...it's very frustrating to me to have the same artist listed multiple times...

    Setting a common Album Artist for each Album does most of the work. For deeper problems see Grouping tracks into albums.
    In general you need to make sure that all the values in the tags are used consistently. Same spelling, same capitalization, same accents, no leading, trailing, or multiple spaces, and each value of Artist, Album Artist or Album should only be associated with one value of Sort Artist, Sort Album Artist or Sort Album respectively.
    tt2

  • How do I get the reminders, in list view, to display in date order?

    How do I get the reminders, in list view, to display in date order? I can't seem to get them to display in date order on either my ipad or iphone.
    Yes i know I can look at date view, but i don't like that view. I excepted the list view to display all reminders in date order.
    Thanks!

    You need to create a stringwriter, wrap it in a printwriter, then print to the printwriter, then convert the stringwriter to a string.
    Here's an example:
    StringWriter sw = new java.io.StringWriter();
    PrintWriter pw = new java.io.PrintWriter(sw);
    e.printStackTrace(pw);
    String strError = sw.toString();
    I hope this works. I didn't test the above code. I don't think I'm leaving anything out, but it's been a while since I've done it. Either way, it should get you on the right track to get what you need.
    Hope that helps.
    Michael

  • How can i get the "Do recursive listing.vi" with teh sub-vi, because my is lost???

    How can i get the "Do recursive listing.vi" with the sub-vi, because my is lost???
    THX

    I think you must be using LV 8.x...
    Do a LabVIEW repair to get it back or else, use the attached one.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    Recursive File List.vi ‏33 KB

  • How do I get my Outlook contact list installed on my Ipad

    How do I get my Outlook Contact list inserted on my E-Mail list on Ipad 2

    Connect your ipad to the computer. (I'm presuming the contacts are on that same machine), Under hte 'info' tab scroll down and you'll see an option to sync contacts with outlook. Check that box and sync and you should be good to go.

  • I set up iCloud on my iPhone, after that my contact list was disapeared, and I couldn't find out it in my iCloud account. so How can I get back my contact list?

    I set up iCloud on my iPhone, after that my contact list was disapeared, and I coudn't find out in my iCloud account. so How can I get back my contact list?

    If your contacts aren't on icloud.com when you check from your computer, and they aren't on your phone, you'll have to try restoring your last backup (or recover them from another backup source).

  • I lost my iphone and dont have icloud downloaded in it...how can i get back my contact list?

    i lost my iphone and dont have icloud downloaded in it...how can i get back my contact list?

    Phone to Mac will be able to pull up your previous backup info from your computer so you can have a copy of Contacts, SMS, etc.
    http://www.macroplant.com/phonetomac/

Maybe you are looking for

  • Image Links "Page" is OV or and I can't delete them

    I'm using InDesign CS4 on Windows XP Pro. We have several documents within a book file in which some of the image links have page numbers OV and < >. I know the OV means overset text, but I'm not sure what the < > means. I know it has something to do

  • Error when selecting system during scheduling of background job in RAR

    Hi, I am getting an error when I attempt to schedule a background in RAR. It happens when I go to the multiple system selection option. I select a system and click copy. An error example below appears in the logs even when I dont go ahead and schedul

  • SVG files in Quicklook crash Finder

    Hey there, When I use quicklook to preview a SVG file, my Finder crashes, I've already filled in a report when it does, but I was wondering if more people have the same kind of experience with SVG files in Quicklook? greetings, Jesse//

  • ITL waits

    Hi , Was going through the MS Doc TX Transaction locks - Example wait scenarios (Doc ID 62354.1) In that under Waits due to Insufficient 'ITL' slots in the block i executed the query it shows a index with high value for ITL waits SQL> SELECT t.OWNER,

  • Notes icon

    I accidentally deleted my notes icon. How do I get it back along with the notes I had stored?