added swing example