Swing example added to Main.java