Hi!
There is a bug in java.awt.List in jdk1.1.6-v2test1.1 (glibc).
delItems(int, int) removes the specified elements from the vector
items but the display does not get updated.
=> remove, replaceItem, ... don't work properly.
removeAll still works because it doesn't use delItems
public synchronized void delItems(int start, int end) {
for (int i = end; i >= start; i--) {
items.removeElementAt(i);
}
// ok up to here
ListPeer peer = (ListPeer)this.peer;
if (peer != null) { // peers seems to be non null
peer.delItems(start, end); // so something must be wrong here
}
}
NOTE: There was is problem with java.awt.List with jdk1.1.6-v1
J�rgen
--
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802