asmcup / runtime

Runtime and compiler for the Assembly Cup
https://asmcup.github.io
MIT License
139 stars 11 forks source link

Fixed some internal errors in the spawn window. #178

Closed MLanghof closed 7 years ago

MLanghof commented 7 years ago

Spawns no longer is that weird amalgamation of an ArrayList and a ListModel. This change also makes the iteration over spawns thread-safe (as in, you can only iterate over a copy, preventing comodification). I had to introduce some manual bounds checking because JList really doesn't want to be consistent with the ListModel behind it.