Here is a QR Code generator template I built. It will generate a QR code, and display the image inside a PaintableCanvas. It also has a button to save the image to disk. This can serve as an example of how to use the PaintableCanvas, how to use other Java libraries,etc.
If you have any questions, please let me know