Programmatically adding a button with an image

Hi all,

I’m struggling to be able to add a button with an image to the toolbar via java code. I can create a button, but no luck loading the image/icon.

can you point me at an example?

Dan