ezbee:
Sweden does benefit from having nuclear power accounting for approximately 30-35% of Sweden's total electricity production.
The rest being mainly Hydroelectric.
Having lots of power generation probably helps its industry a lot and there is enough power to export as well.
Problem is to afford nice things you do need income and for Norway hydrocarbons finance its support of EVs etc.
There are Swedish companies involved in Hydrocarbon extraction in the North Sea too.
Swedish oil firm confirms massive North Sea find some years back as example.
https://www.thelocal.se/20110930/36460
Its all a bit easier when you are a hop skip and jump from a large proportion of earths consumer population.
So you can have all sorts of industries with major foot-pints across EU etc, to broaden out your economy.
IKEA, Volvo and all that.
Last stop before Antartica as we are, not so much, if only Penguins had deep pockets.
Most of the countries doing a very good job on environmental and social progress, have benefited significantly from oil extraction. The Netherlands (Shell Oil), Norway (massive oil resources), Sweden (own oil resources and strong economic ties to Norway). Oil is good money for developed countries. Those three countries are also very deliberate in their strategies to move away from oil. For example: The Netherlands is big into food and pharma (and seawalls). Norway in technology, equipment etc for primary industries including fishing, forestry and aquaculture (and oil).