Removing an item from a Jlist



Hi all,

I m currently developing a java application where information from a
file is populated into a JList. The user should be able to select an
item from the JList and then once the user presses the delete button
the item that the user selected should therefore be removed from the
JList. How would I go about doing this.

Any help in this matter would be highly appreciated. Thank you
.