Swing initialization.