Its not quite as easy in Java as it is in C# to add to a jlist. If you want to actually add an item to a JList, you need to add it to the list's model. That's a simple matter of retrieving the list model, and casting it:
PHP Code:
((DefaultListModel)mylist.getModel()).addElement(anObject);
Should do it.