dcsimg
Is it possible to add elements to a comboBox at runtime ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ravindra_bisht
Posted On:   Sunday, July 21, 2002 12:21 AM

I would like to know if it is possible to add an element to the comboBox at run time.It should be like, if the user enters anything in the editable comboBox it should get added to the comboBox prmanently and data related to the newly created element should be stored in the database.Thanks in advance.

Re: Is it possible to add elements to a comboBox at runtime ?

Posted By:   George_Tzallas  
Posted On:   Monday, July 22, 2002 01:54 AM

Check method addItem (Object)


There is also a link at the top of this page to the Java Tutorial, on how to read the contents of
an editable combobox and do something with them (Just change the code of the action listener
to comboBox.addItem (ae.getActionCommand ()))


Regards


George T

About | Sitemap | Contact