Using the Java Applet which demonstrates the truth of Pythogean theorem, turn it into a mathematical proof of the Pythagorean theorem.