JComboBox has any property like ItemData Available in VB

Hi,
JComboBox has any property like ItemData Available in VB ?
I want to store Integer value corresponding to each Item in the JComboBox.
Give me your valuable suggestions or solutions.
Thanks,
SENTHILKUMAR R

People often make the mistake of filling their models with strings...
Since a ComboBoxModel can contain any class you'd simply fill your model with a class that >contains your object and integer. For simplicity you'd make its toString method return the same >value as your object's toString method. You'd then expose your integer with something like >"getNumber". Personally I'd put a meaningful entity into the combo box model and change the >renderer to figure out a string for that item.
Hope this helps.Hi KPSeal,
Thank you for the reply.
I feel it is easy to maintain an Array or Vector instead of that. What u think of it ?
Is it enough ? I am waiting for your reply very eagerly.

Similar Messages

  • I am unable to dial India toll free numbers from my iphone, these numbers are like 1800-***-1515. There is nothing as dial assist in Ios7.1.1 which i can disable and dial in india toll free numbers.Please respond if anyone has any solution

    I am unable to dial India toll free numbers from my iphone, these numbers are like 1800-***-1515. There is nothing as dial assist in Ios7.1.1 which i can disable and dial in india toll free numbers.Please respond if anyone has any solution

    Check this post, the dial assist is part of the iOS 7.1, according to page 49 of the iphone_user_guide
    Make calls to your contacts and favorites while traveling abroad. (GSM) Go to Settings > Phone and turn on Dial Assist. Dial Assist automatically adds the prefix or country code for calls to the U.S.
    This user had a similar problem and solved it by switching off the dial assist feature in Settings/Phone/Dial Assist
    Re: How to save toll free no starts with 1800?

  • I recently updated my macbook, i don't know if that has any effect to my recent problem, but when i try to download and save .mp3 files from the internet, like i have done in the past, it downloads but not as an mp3 file, its "blank"

    i recently updated my macbook, i don't know if that has any effect to my recent problem, but when i try to download and save .mp3 files from the internet, like i have done in the past, it downloads but not as an mp3 file, its "blank" and when i try to open it, i can't? I NEED HELP !

    Here is the download page

  • Whether i will able to avail call facilities with my ipad(Cellular) by not jailbreaking it? If not now, whether apple has any future plans to implement the same?

    Whether i will able to avail call facilities with my ipad(Cellular) by not jailbreaking it? If not now, whether apple has any future plans to implement the same?

    An iPad is a tablet, not a phone, they do have plans, it's called an iPhone....
    While it has celluar data this isn't hte same as a celluar line or ability to make phones, can you imagine how stupid you'd look with a tablet against your ear?
    Skype, Google +, Facetime, all wonderful ways to have calls

  • When I type any website like wikipidia or linkedIn that has initial page names as Home, I am going to some unknown website. It is happening for many other websites like yahoo, timesofindia, etc. Please help me, because I am unable to find root cause.

    When I type any website like wikipidia or linkedIn that has initial page named as Home, I am going to some unknown website. It is happening for many other websites like yahoo, timesofindia, etc. Please help me, because I am unable to find root cause.

    Apple does not give away its products.
    Unless you are the 1,000th person to show up at a new Store and Tim Cook is there and his assistant is filming you to be posted on their Home Page.
    That is yet another FaceBook SCAM.

  • HT6058 Hello I m using iPhone 4S , it was quite good, but now I m using ios7.0.4 but when I open any application  like, Skype, camera, viber etc it has

    Hello I m using iPhone 4S , it was quite good, but now I m using ios7.0.4 but when I open any application  like, safari , Skype, camera, viber etc it has closed automatically y?

    Hello Junaid qureshi,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/ts1702
    Best of luck,
    Mario

  • My internal fan has gotten loud like a vacuum.  Are there any tricks to fixing it without taking it in?  Can it be taken in to replace the fan or is it time for a new computer?

    My internal fan has gotten loud like a vacuum.  Are there any tricks to fixing it without taking it in?  Can it be taken in to replace the fan or is it time for a new computer?

    Reset the SMC, as per > Resetting the System Management Controller
    1. Shut down the computer.
    2. Unplug the computer's power cord.
    3. Wait fifteen seconds.
    4. Attach the computer's power cord.
    5. Wait five seconds, then press the power button to turn on the computer.

  • Is there any property in OPA for textbox - allow only numbers and hypen

    Hi,
    I am working in .net code with OPA rules engine. I have set of OPA screens with textboxes.I want to restrict the user to type only numbers and hypens for some of the text boxes(like phone no,ssn,zip code and so on).
    As you know,this can be done in .Net javascript/jquery.The problem is , we don't have any clue to identify which textboxes needs to be restricted(out of 25 textboxes in entire flow ,only 4 needs to be restricted). Currently,nly the idea we have based on the screen title and question(hard coding).But it's not the right solution.If the rulebase changed,it won't work.
    Is there any property/API in OPA end for textboxes to set to give some clue to front end developers(dotnet) not to allow other than numeric and hypen for these textboxes ? OPA developer has written some rules for this , but it will do the validation only after entering the value, we want to restrict the keyboard entry itself based on some property getting from OPA.
    Thanks.

    Thanks for your quick response, actually OPA developer added some regular expression to validate the textbox entry, as you said it's working properly after entering some values in textboxes.
    But, still i am looking to do the keyboard manual entry restriction in front end .NETcode based on some clue from OPA.I can understand keyboard entry restiction can't be done in OPA end. We use OPA rules engine to display the screens and textbox controls in front end .NET code.
    But if i get some clue from OPA ,like saying that,these are the textboxes having reg expression property for which you need to restrict only numbers and hypen.
    We have around 100 screens in the flow , out of which some of the screens have textboxes(out of that only few textboxes needs to be restricted only numbers and hypen) .
    Currently , i have some javascript code to restrict the keyboard entry ,but it's working common for all the textboxes, i want to restrict only few textboxes which should accept only numbers and hypens.If i get any property/clue from OPA, saying that this is the property for textbox for which you should restrict only numbers.
    Like , for example, multilinecount property for textboxes which should appear bigger. As of now,OPA developer doesn't have any clue about how to do this.
    Thanks,

  • Does newScale has any built-in tools for "trend" monitoring?

    Does newScale has any built-in tools for "trend" monitoring?
    A couple questions being asked by my peers and I am not sure how to answers on 'trending' like:
    How did a user get here (to the order form - through searching or navigating the service catalog)?
    Is the service catalog in RC helpful or working as it is intended?
    The team is working on putting together the service catalog for the RC, and they would like to know whether there's any tools available in newScale that would have some statistic on how people are using it.
    Any suggestion?

    If your question of "is the service catalog in RC helpful or working as intended?" can be answered by the order volume trends, you might want to explore using the Reporting and Analytics capability in RequestCenter.
    You can design these reports to provide the volume trends (even with charts):
    Order Volume by Service Group over time
    Order Volume by Service over time
    Month over month service completion volume
    etc.

  • Does Apple has any screen sharing software.

    I want to know if Apple has any software by which I can share my IPAD's screen (desktop) of IPAD to any other IPAD or system (Like HP laptops) OR I can see other peoples screen (desktop) from my IPAD. Is it possible between IPAD to IPAD screen sharing or IPAD to other systems is also possible.

    Hi.
    I browsed around myself to see what's available.
    I have the use case that my kids should be able watching video in the back of the car. Having to Ipad 2 would be great and interconnect with the same video. Of course they can watch tha same video but originating from the respective ipad. But in that case they must have headphone. I would like the two ipad's to sync and they can watch the same video that is linked from the one screen to the other. I'm afraid that some apps like "ideaflight" introduces time lag.
    What do you say? I'm probably not the only having this idea.

  • Hi, I'm currently browsing the web looking for a case that is compatible with the smart cover for the iPad 2. If anyone has any suggestions I would be glad to read all opinions! Thanks!

    Hi, I'm currently browsing the web looking for a case that is compatible with the smart cover for the iPad 2. If anyone has any suggestions I would be glad to read all opinions! Thanks!

    I love the Smart Cover. It fits the way I work and I love the instant on/off and the always available screen protection. I wouldn't use my iPad without it.
    I got a Cover Buddy for the back, because I wanted the back to be less slippery when I'm using the iPad in the classroom, teaching. I picked this back cover because it's VERY lightweight, easy to get on or off and, protects the corners, has accurate cutouts for the ports, and (in the colors) has a rubberized surface:
    http://www.switcheasy.com/products/CoverBuddy/
    I have a Built NY "hoody" slip on case with a hard internal shell that I use when I'm in the field and I can put the iPad with the Smart Cover and the Cover Buddy inside this . But for everyday use, the Smart Cover with the Cover Buddy is a terrific combination.

  • Hi my name is steve arsenault  i am looking for a short keys for  apple and if someone has one i like to know how to use it please e-mail me has soon has posible thank you

    hi my name is steve arsenaulti am looking for a short keys for  apple and if someone has one i like to know how to use it please e-mail me has soon has posible thank you
    <E-mail Edited by Host>

    It sounds like you are looking for a program like Typinator.
    It isn't free, and the site doesn't specify compatibility with any OS above 10.7.
    As of today, the latest release is dated May 29th, 2012.

  • Facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue

    facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue

    Apple has released a document which is reported to address the recent FaceTime issue.
    http://support.apple.com/kb/TS5419

  • Does the RFFOEDI1 program has any implication on the ACH direct deposit?

    Hi all,
    Can any one please explain the use of RFFOEDI1 program. Is this
    program used just to generate I-Doc?
    Scenario: For Check payment method(C)
    Once F110 run is successful, then we have to run RFFOUS_C program to
    generate checks. Once this program is complete, checks will be
    generated and the check info will be available in PAYR table.
    Scenario: For ACH-CCD payment method (D)
    Once F110 run is successful with payment method D, The payment details
    will hit BSAK table.
    Now, I don't want to generate the SAP standard I-Doc with RFFOEDI1, do
    I still need to run RFFOEDI1 program???
    For the check payment, RFFOUS_C program triggers the generation of
    checks after which the check info will be available in PAYR table
    Likewise, does the RFFOEDI1 program has any implication on the ACH
    direct deposit?
    To my understanding, If you do a payment using payment method, ACH
    direct deposit in SAP, we don't generate any check numbers ???!!!
    Do we get any reference number or anything when the direct deposit is
    done??? This reference number could be used to trace the invoice
    against which this ACH payment was done!
    If it is the case, where do we get/ when do we generate the reference
    number to trace the invoice????.....any inputs?
    If we are not going to run RFFOEDI1 program, (if we are not interested
    in generating IDoc) then are we DONE with the ACH direct deposit, once
    we are done with payment run(F110)???
    Where do we get the reference number which specifies the ACH payment?
    Sorry, I have poured in lot of question at one place!
    Any inputs/ solutions/ suggestions are greatly appreciated!
    Thanks a lot!

    RFFOEDI1 is typically used when payments to vendors are to be sent by an EDI 820 file to the bank. This program generates the PEXR2002 idoc. The idocs are sent to the EDI translator where these are mapped to an EDI 820 file format and sent to the bank.
    Scenario ACH-CCD payments method (D)
    If you do not want to send EDI 820 payments, you would typically not generate the idoc - in which case - you dont have to use RFFOEDI1. This probably means that (a) you are using the RFFOUS_T program for generating the payment medium or (b) you are using the payment medium workbench to generate the ACH file (NACHA format) for your house bank.
    You do have to send an ACH file to the bank for paying your vendors - which means - you are probably using one of the above methods to generate the file.
    ACH Direct Deposit
    I am assuming that you are probably referring to ACH-PPD type payments here. You would still have to send the payment medium using one of the methods mentioned above.
    In all ACH scenarios, your payment document number, is your reference number that was used to clear the open item.
    Hope this helps.

  • I'm a video editor working primarily in FCP7 and just purchased the latest Mac Pro running Yosemite ? Does anyone know if any options have become available for running FCP7 on this platform ?

    I'm a video editor working primarily in FCP7 and just purchased the latest Mac Pro running Yosemite ? Does anyone know if any options have become available for running FCP7 on this platform ?

    It would "run" (more like Sunday stroll or walk) if you installed Snow Leopard in a VM. Especially if you have 6-core (and would help to have 6 or 8 cores anyway if you were able to and intend to make best use of nMP for video editing).
    If you "classic" Mac Pro was 2009 or later, adding two AMD graphic cards, upgrading the processor to 8-core 3.xGHz would have gotten you a FCP-X capable machine and still dual boot and use Snow Leopard as needed.
    Any Mac Pro can now use 1000MB/sec SSD PCIe blade to boot from and/or for scratch and editing to help improve work flow.
    SSD Blade Drive for "Classic" Mac Pro

Maybe you are looking for

  • Re: problems creating spatial index !!!!

    hi! Guys , I am running Oracle 9.0.1.1.1 on windows 2000 professional. I am creating a spatial index on a table column. When i try to create it from sqlplus command prompt .. it errors out END OF FILE ON COMMUNICATION CHANNEL .. It was suggested to b

  • Arabic support in isqlplus after import export from 7.3.4 to 10.2.0.3

    CANNOT DISPLAY ARABIC IN ISQL*PLUS(JUNK). APPLICATION WORKS FINE WITH ARABIC with Taret DB char set to US7ASCII the data is always junk old data +new inserted arabic data inserted thro isqlplus or sqlplus. with AR8MSWIN1256 the old data(imported in t

  • OS X Yosemite Wi-Fi connecting icon is a bit wrong

    I think there is an icon error in OS X Yosemite. The third icon above is slightly larger than all the other icons, distorting the Wi-Fi signal when searching for a Wi-Fi network. Please fix this issue.

  • Entourage makes iclock disappear.

    I have iclock set to display the date and time on my menu bar. When I launch Entourage, the date and time disappears. If I click on Finder, the date and time reappears. If I click back on Entourage, the date and time disappears again. So, when Entour

  • DB_GET_BOTH_RANGE fails when there is only one record for a key

    Using the DB_GET_BOTH_RANGE flag doesn't seem to work when there is a single record for a key. Here's a sample Python program that illustrates the problem. If you don't know Python, then consider this to be pseudo code. :) from bsddb3 import db impor