Combo Box

Discussion in 'Programming General' started by d great one, Aug 10, 2009.

Combo Box
  1. Unread #1 - Aug 10, 2009 at 11:21 AM
  2. d great one
    Joined:
    Nov 4, 2007
    Posts:
    930
    Referrals:
    2
    Sythe Gold:
    0

    d great one Apprentice

    Combo Box

    I need help in putting action in Combo Box.
    I need to know how to access the index.
    Or I could just get the string value if the index is highlighted.

    In this example:

    [​IMG]

    I need big help guys.
    I tried getSource setSource and some stuffs. Couldn't get it to work to my liking.
    getText won't work in my package.
    I'm using Netbeans just so you know.

    Help would be really be a savior. I'm going nuts with loads of projects.
     
  3. Unread #2 - Aug 10, 2009 at 12:25 PM
  4. Jimmy
    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    Combo Box

    Index: getSelectedIndex()
    Item as a String: ((String) getSelectedItem())
     
< Hey all i need to make a client go onto a webclient | Combo Box items gathered/saving to database >

Users viewing this thread
1 guest


 
 
Adblock breaks this site