Added Swing sample code
Added Swing sample code