how can i dynamically add and retrieve values to the Jlist(beans available in servoy)?
JList is a bean. Although shipped with Servoy it is not part of Servoy.
To use it you need to dive into Java.
A good place to start:
http://java.sun.com/j2se/1.4.2/docs/api … JList.html
A JList is backed by a ListModel interface. The model is where you add/remove elements to the list at runtime.
The following will produce some results.
Try it in your on form load method:
var model = new Packages.javax.swing.DefaultListModel();
model.addElement("Foo");
model.addElement("bar");
elements.jlist_bean.model = model;
Hope This Helps,
sean