Yes, if you are Ugandan you need a visa for a visit for maximum 90 days.
More information about how to apply for a visa to Sweden is provided here
List of foreign citizens who require a visa for entry into Sweden