swing example working
dynamic example working