Add example documentation for swing frame.