Adding swing snippets