Swing application working version.