Rating Machine using Java Swing