Physics Laws in Swing Applications