I don't know about Sweden particularly but in Norway "Forbrukerkjøpsloven" [0] gives you up to a 5 year warranty on any items which are obviously meant to last for at least that long. For instance, shoes have a two years warranty, but a laptop or most kitchen appliances have an automatic 5 year warranty which cannot be waived.
I'm not that knowledgeable about all the details here, but I've done it once for a PSU which stopped working after four years.