ListSelectionListener sprlistener = new SpriteSelectionListener(
spritesList, factory);
sprselection.addListSelectionListener(sprlistener);
ListSelectionModel texselection = texturesList.getSelectionModel();
ListSelectionListener texlistener = new TextureSelectionListener(
texturesList, factory);
texselection.addListSelectionListener(texlistener);
// -----------------------------------------------------