Friday, January 30, 2015

How to resize the icon of the button?








Hello folks,








so I have got a button and there is this property assigned to it:








button.setIcon(new ImageIcon("src\\image.jpg"));








The icon is not displayed in full, as it is larger than the button. What property can I use to resize the icon? I have tried few and it did not work. Any help appreciated.















No comments:

Post a Comment