Err... no.
It's first recorded in ancient Greece, way back more than a millenium before having ANY records from Sweden. (The first written document we have from Sweden is a runestone from around 800 AD. Which doesn't mention any trial.)
Only difference is that it's usually translated as "judges", and there were more of them. But they had the same functions as a modern jury, and none of those of a modern judge. They could only decide whether the prosecutor or the defendant is right.
Even when it came to giving the sentence, after they pronounced the guy guilty, they didn't actually decide it. The prosecutor argued for what he thought is a just punishment (e.g., surely such a villain should be put to death), the defendant argued for what he thought he could (and would rather) get away with (e.g., surely banishment is more fitting), they made their case and then the judges went and decided by majority vote in favour of one or the other.
See, for example, the trial of Socrates.
So, yeah, it was a jury. Effectively what they had was a system with only a jury and no equivalent of what we'd nowadays call a judge.
Note that at this point they had very little in the way of exact laws, unlike the Romans later, or really unlike most of the world. So basically anything you didn't like you could at the very least frame as the crime of impiety, including stuff like being TOO gay for Athens. (I'm not even kidding. We actually have the record of a trial where one guy got banished from Athens for being TOO gay.)
And the punishment, ditto, was only limited by what you thought you can convince the jury. We even have on record a trial where basically part of the sentence was that the prosecutor is allowed to have sex with the defendant's wife. Literally.
Which, as a tangent, IMHO is why Greece was the only place where formal logic appeared, and quite soon after this system started. Since you were only limited by how good you were at persuading the jury, at first sophistry ruled supreme, and there were even schools on how to deliver passionate appeals to emotion, to consequences, tradition, etc, that would sway those guys to see things your way. So basically you could have the pants sued off you (possibly even literally, if that's the punishment he wanted to argue for

) for any reason whatsoever, just because the prosecutor is a great orator and can pull it off. Then relatively soon we see people start to write books about what actually follows from what premises, and what sophistry devices are just peddling falsehoods.