adds Java Swing GUI example