The cases are brought before prosecutors or district attorneys that will file a complaint against a defendant. After the complaint is accepted, the trial is taken place before a judge and sometimes before a jury in federal felony cases. Just after the trial that the judge would decide and with that decision the defendant can appeal.