help clearing a jlist

I'm using netbeans 5.5. I have a couple of Jlists on a gui and a button click event that populates the Jlists.

I am trying to make it so that everytime the button is clicked, it clears the Jlist's first before populating them. Currently when the button is clicked it just appends the new population items to the previous lists.

The code I've been using is..

list Model.clear();

Jlist.validate();

I have this code in the button click event method right after the listModel's are assigned to the proper Jlists.

(obviously I have them using variable names in my code)

Anyway, this doesn't give me any errors, but it also doesn't clear the lists.

I've tried a few different things, but I have no idea why this isn't clearing the lists.

[804 byte] By [Simon_Templar96a] at [2007-11-27 1:52:19]
# 1
Never mind :-) I just figured it out. The jlists were actually clearing but I was using vectors to populate them, and I wasn't clearing the vectors so they were actually just appending all the new info to the vectors again.
Simon_Templar96a at 2007-7-12 1:21:07 > top of Java-index,Java Essentials,Java Programming...