This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
in my opinion it sounds like an easy question, but i don�t find the right answer. I have a simple undecorated frame, with only one JPanel inside. This JPanel has three JButtons inside. (GridLayout (3,1)) Each JButton has an image (like a traffic light).
Now i want this JButtons to be as small as possible. Therefore i designed three very small images (16x16).
How do i get the JButtons as small as the images are? Now, the Buttons do not get smaller when i take smaller images. The small images are only centered in the JButton that has the same size as before.