I have boners in school all the time. All you have to do is put your arm over your pants and push it down without anyone noticeing. Just pretend you are leaning on your legs.
To tell you the truth, i pee on the seats on purpose. I know, i know. Its very bad, but its funny.