Hi Rugby,
I haven't had much time to mess with this. But here is my first approach.
I got the middle.gif from the Sun
Java 2 tutorial on button demo or something like that. It is almost square in size. I am not sure how this will work if your icon is not quite square.
Enjoy,
Manfred.