Adblock breaks this site

Combo Box

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

  1. d great one

    d great one Apprentice

    Joined:
    Nov 4, 2007
    Posts:
    930
    Referrals:
    2
    Sythe Gold:
    0
    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.
     
  2. Jimmy

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25
    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 >


 
 
Adblock breaks this site