Adding Items to a List Box Dynamically

I have a text field, a button and a list box. When the button is clicked, the text from the text field is supposed to be added as a new item to the list box. I have tried adding the text to a HashSet and then binding the list box's items property to the HashSet, but this isn't working. Is there a better way to do this?

Thanks.

[343 byte] By [karim86] at [2007-11-26 9:35:13]
# 1
I found a very helpful link. http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/lis tbox_components.htmlThanks anyway :)
karim86 at 2007-7-7 0:25:28 > top of Java-index,Development Tools,Java Tools...
# 2

Karim,

I am a technical writer working on Creator help. It was good to hear that you found the solution to the listbox issue in a Creator tutorial! I'm curious how you found that information. Your reply would be helpful to us in planning our documentation.

Thanks,

Paul Fussell

pfussell at 2007-7-7 0:25:28 > top of Java-index,Development Tools,Java Tools...