Initial Swing code