I add an image to the button in the following way:
ImageIcon icon = new ImageIcon("images/col.jpg");
tmp = new JButton(icon);
My image is a red sphere but in my button I see only read color. I assume that I see just a small part of the sphere. How can I see the whole image in the button?
ADDED
Yes, my icon is bigger than the button. Is there a simple way to force the icon to fit the size of the button?