What would be best way of populating a JList?

Hi all,
I'm trying to put a list of users in a program so that one can be selected, I need to display the users name but also need to associate a user ID number with that field on that list that can't be seen.
The tutorials i've found only allow me to add the username and then when selected i can only retrieve index number that user is listed at. Would there be a way of storing the user ID as well in the list or should i use an array or something to store the IDs?
Thanks

http://forum.java.sun.com/thread.jspa?threadID=636201

Similar Messages

  • What would the best way to go for an virtual grid?

    I need a 3 x 8 virtual grid that I can change values to:
    Red
    Blue
    Spoiler
    what would the best way to go for this objective?
    Thanks!

    I need a 3 x 8 virtual grid that I can changevalues
    to:
    Red
    Blue
    Spoiler
    what would the best way to go for this objective?
    Thanks!Create a Grid and a Tile class. A
    Grid has a 2D array of Tile objects an
    a Tile has an attribute called Color and, say,
    an x- and y-point. Program some appropriate methods.
    Done.
    Thanks for trying, but Nanook already gave the correct answer in reply 1.Is it possible to restrict these? to like a 8 x 3 grid ?
    or should i use an if statement?

  • I would like to use one library but with multiple ipods, but because they are my kids Ipods, and they each have their own gift cards, I'd like to be able to add money to their "profiles" without them having their own account - what is the best way

    So here is my delima - I want one Ipod account - because I only want one library - since we all like the same music - but my kids, who have their own IPODS, have gift cards, who want to be able to keep track of their balance without the other child affecting the balance - meaning - each gift card should be seperate and not totalled to the single account - Beacuse the library is fairly large, having three libraries of large amounts would be a waste.  I would also like to restrict their purchased to the gift cards only and not my credit card on file.  Does this make sense?  Once this is resolved, I'm assuming they would use their own playlists to copy their favorites to each Ipod.  Or would I set up an account for each child - which I dont want to do, because I dont want them having access to my Credit Card, and only gift card balances.  With multiple accounts, I'm assuming that would also build seperate libraries?  We also have multiple computers, but I share the library to those computers -
    What is the best way?  I'd like to be able to add credit to a specific child (birthdays, etc) without the other child being able to access that credit.  For simplicity sake.
    We are new to IPODS and lack any MAC skills.
    Thoughts?

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • Our granddaughter has a ipod. She's getting a iphone and a mini idpad.  what is the best way to set them up. Does she need a new apple id and password or would she use the same one she has for her ipod

    our granddaughter has a ipod. She's getting a iphone and a mini idpad.  what is the best way to set them up. Does she need a new apple id and password or would she use the same one she has for her ipod

    Just use the same one on all devices.

  • I have an iMac purchased new about 5 years ago with OS 10.4.11. I would like to upgrade to Lion. I currently have a 2.33 GHz Intel Core 2 Duo processor with 2 GB of ram. Can I upgrade to Lion, and what is the best way to do so?

    I have an iMac purchased new about 5 years ago with OS 10.4.11. I would like to upgrade to Lion. I currently have a 2.33 GHz Intel Core 2 Duo processor with 2 GB of ram. Can I upgrade to Lion, and what is the best way to do so?

    From what I read here:
    http://www.tuaw.com/2011/06/06/lion-...u-2-gb-of-ram/
    s long as they already have Snow Leopard 10.6.8 installed in it.All a person needs to do with that type of iMac is to upgrade/max out their Ram. They claim that an Interl iMac with Core 2 Duo is all that is needed, as long as it has OS 10.6.8 installed. They say you don`t need  the "Core i3, Core i5, Core i7, or Xeon processor"
    But I wonder about the RAM speed, the iMac 2.33Ghz uses DDR2 SDRAM,  which I believe is rated at 667Mhz. Lion maybe installed but it might be problems running smoothly or not?
    Did some quick checking and the iMacs apple is selling this year use 1333MHz DDR3 SDRAM.
    The only thing to do is to make sure you have a good back-up, Install your RAM and install Snow Leo, then wait a couple of hours and install Lion.
    Good Luck

  • HT2534 I have two class sets of iPad 2s and I would like to set up an iTunes account but don't want to put in my credit card information or individual students' information. What is the best way to set up class sets of iPads?

    I am a K-6 tech teacher and just recieved two classroom sets of iPads. I'm wondering what is the best way to set up iTunes so that apps may be downloaded. I do not want to put my personal information in and I do not want students to put in their informtion either. Teachers want to be able to download free apps and when the school purchases iTunes gift cards, they would like to be able to use them. What is the best way to go about this?
    Thank You!
    Jess

    Contact your IT person. They will help you with provisioning & setting up the iPads and getting apps on them and locking them down so students can only access certain settings and apps.
    I have asked that this post get moved to iPad Enterprise as it is more approriate forum for your question (even though it is about schools))
    Don't create an AppleID yourself and use it to put stuff onto the school iPads. You can't have more than 10 iPads to one iTunes account anyway.

  • Hi I would like to totally reformat my Macbook Pro. What is the best way to go about it?

    I have a Macbook Pro and would like to do a complete reformat. I installed Moutain Lion when it came out and do not wish to pay again since I've already paid. I have OS 10.6.4 discs with me which didnt come with my MB but with my previous one. What is the best way to go about it? I have bootcamp and wish to get rid of it (one of the many reasons of wanting to reformat)
    Thanks

    You can use the Boot Camp Assistant to remove the Bootcamp Partition  - best way to do it.
    If you use the Recovery Disk Assistant to create a recovery usb thumbdrive you can boot to that and repartition the MacHd and reinstall the OS directly.
    When you purchase the OS you are free to reinstall without repurchasing as long as yo have access tot he Apple Id you used to make the purchase
    DL1433 - & - HT4848

  • Hi I would like to show a presentation written on my macbook air on my television what is the best way to connect the two ?

    Hi I would like to show a presentation written on my macbook air on my television what is the best way to connect the two ?

    Much depends on the available connectivity  of your television.
    If it has HDMI input available, all you will need is a minidisplayport to HDMI adapter, and an HDMI cable long enough to place the Mac in the desired proximity to the TV. The adapter is avaialble from the Apple Store online.
    Provided the HDMI input on the television supports sound, and the model of your MBA supports it as well, make suree that your adapter is also supportive of sound, otherwise you will need to run separate cabling from the headphone jack of the MBA to TV sound input or external speakers.
    This is a somewhat specific answer to a question without any requisite detail. You don't indicate the model or type of inputs on your TV, nor do you indicate the model/generation of MBA you have.

  • I have a Pages file that I would like to make secure. What's the best way to do that?

    I have a Pages file that I would like to make secure. What's the best way to do that?

    Inspector  > Document > Document > Require password to open
    Peter

  • I would like to put the results of a proc on a local database into a table in my azure db. What is the best way to do this?

    I would like to put the results of a proc on a local database into a table in my azure db.  What is the best way to do this?  I dont see the ability to link.  The local db is on my desktop and is mssql12.
    McC

    I am not sure if i set up the linked server correctly here is the schema and an attempt to run a select and the resulting error:
    SELECT  *
    FROM  [CN5E6E9LM2.DATABASE.WINDOWS.NET,1433].[Mkerr_db].dbo.addr
    OLE DB provider "SQLNCLI11" for linked server "CN5E6E9LM2.DATABASE.WINDOWS.NET,1433" returned message "Unspecified error".
    Msg 40515, Level 16, State 2, Line 1
    Reference to database and/or server name in 'Mkerr_db.sys.sp_tables_info_90_rowset_64' is not supported in this version of SQL Server.
    McC

  • I would like to display what's on my Mac Pro monitor on my iPad with as little latency as possible. What's the best way to do this?

    I would like to display what's on my Mac Pro monitor on my iPad with as little latency as possible. What's the best way to do this?

    Your image history (if I understand you properly) is stored in your catalog file, and nowhere else, and so it is only on a single drive.
    Do you mean you have edited photos on multiple drives? This isn't a problem for Lightroom at all, the software doesn't care, and you can leave things just the way they are. But if it bothers you for some reason, you can move the photos to a single drive if you want. In Lightroom select the desired photos or folders (it's easier to do this using Folders) and drag them to the desired drive.
    Alternative if you will be moving lots of folders: Adobe Lightroom - Find moved or missing files and folders

  • Using the new iPad, what's the best way to watch video files (away from home) which are stored on a NAS (WD My Book Live)? Any help would be appreciated!

    Using the new iPad, what’s the best way to watch video files (away from home) which are stored on a NAS (WD My Book Live)?  Any help would be appreciated!

    Before you go, move the files to I tunes and sync them down.  There is no viable way to stream from your nas drive to the pad.

  • I recently purchased a new laptop and have some music on it that I would like to add to my iphone. And vice versa so I can sync them.  What is the best way?

    I recently purchased a new laptop and have some music on it that I would like to add to my iphone. And vice versa so I can sync them.  What is the best way?

    iDevices are not backup devices.
    Copy the ENTIRE iTunes folder from the old computer or the backup of the old computer to the new computer, then sync the device to the computer.
    Attempts to sync the device to the new computer will remove all content from the device and replace it with content from the new computer/library.

  • Hey guys what is the best way to retrieve my password on a mac?? I need to install a new software but it would not let me because i can't remember my password

    hey guys what is the best way to retrieve my password on a mac?? I need to install a new software but it would not let me because i can't remember my password. what a pain ;-((
    Any suggestion would be greatly appreciated

    Resetting or changing a password:
    For Snow Leopard or earlier:  http://support.apple.com/kb/HT1274

  • I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?, I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?

    In Final Cut Express I have two videos I'd like to merge parts of each video into a final film.  What is the best way to do this in FCE?

    Hi
    I use a slightly different way than Alchroma.
    Same
    • One video on track 1 and the other on Video.track 2
    • Resize to 25% and move one to the left and the other to the right
    Diff
    • I don't use the blade tool
    • I use the Pen tool and change the transparency - then I get fast or slow transitions in same stroke and easy to fine-tune later if needed. (But this can be done with the Roll-tool if Blade is used - so it might be as easy)
    Final
    • Resize to 100% and Center
    Video is done
    Audio - very close to this by changing the level so that best audio will dominate
    • Pen tool here too
    But that's me - the Alchroma way is as good as this or may be better for some
    Yours Bengt W

Maybe you are looking for

  • How to get a correct date format

    Hi Experts, I fetched a record from the table KALV. Here its showing the date format as DD.MM.YYYY. But in my internal table and my output its showing YYYYMMDD. How to solve this? Actually this report needs to show the output as per the user's format

  • Using a JAAS compliant LoginModule in OC4j

    Hi. I'm trying to set up an application to use a custom LoginModule in OC4J. The OC4J security FAQ states that this can be done by adding <!--Login Module Data-->... to the jazn-data.xml file as it is done with the oracle.security.jazn.tools.Admintoo

  • Is it possible to monintor individual jobs in CCMS/Solution manager

    I need to check and make sure a job finsihed by a spefic time.  Is is possible to setup an alert if the job doens' finish by that time?

  • Redo Log Groups

    Call me stupid, but for some reason I've decided to get certified as a DBA even though I have always been a developer. Honestly, its not my fault. The choices in the development track are pretty boring... Anyway, while pouring through the Backup/Reco

  • How do I get my adobe export 5 diget conformation numbers?

    how do I get my adoby export 5 digit conformation numbers