Adds an example using the Swing canvas