windows.get(slot).destroy();
windows.remove(slot);
}
// Build a new window in the factory of the right type
final AbstractWindow window = WindowFactory.getInstance()
.newWindow(className);
window.setSlot(slot);
window.setParent(this);
// Allocate it to the slot
windows.put(slot, window);
// Attach window