add swing sample