Sweden has an extensive railway network. Long-distance lines are operated by the government-owned company SJ AB, or by private enterprises. Regional public transportation, both by rail and bus, is provided by the counties, län, or associations of those. There are also some commercial bus services. The transport carriers in Sweden operate a ticket platform called Resplus for multiple-leg travel. See Resrobot for an interactive journey planner.
A note on planning your travel: if you are using Google Maps to find train connections and build an itinerary, this can work very well if you are doing it weeks or months ahead of time. If you are close to the day of travel, or you are on the ground, you may find that you have more data than Google and it can sometimes be wrong. Or Google Maps may not offer you the best connection points when there are multiple stations at which you can make the connection. Double check your plan with staff at a station, if you are booking within a few days of travel.