In general all students from countries outside the EU/EEA need to have a residence permit for studies during a period longer than three months at a university or college in Sweden.
When admitted, and the fee has been paid, apply for your Swedish visa as soon as possible, at the nearest Swedish Embassy or Consulate.
Application forms are available at the Swedish Embassy/Consulate or from the web site of the Swedish Migration Board, www.migrationsverket.se
Applications for residence permits are processed by the Swedish Migration Board.
You do not need a residence permit before you arrive if you come from an EU/EEA country. However, if you are studying for more than three months you must register with the Swedish Migration Board no later than three months after your arrival.