I hope you know the answer to my beginner question -- I have a JButton, which has an Image drawn to it. Now I tried to apply a Layout to this Button and the whole rest of my formular, and this works fairly good. The Button is resizing when I resize the Window. But I wish to make the Image on the Button smaller, when the Button shrinks, and bigger, when the button gets bigger. Is there any possibility to do this without too much hassle? Is there an autofit setting, or another way to get notified anytime the button gets resized?
When there is such a notification: How do I get the size the button is tried to be resized to? Just with getSize()?
And talking about "best practice" -- yea, what would the best practice be here?
I hope this question doesn't annoy you too much; I am a total GUI beginner :/
Thank you very much!