Read the API for JList and follow the link to the Swing tutorial on How to Use Lists where you will find a working example of adding and removing items from the JList at runtime.

db