resizing a ImageIcon in a JButton

Posted by Tony on Stack Overflow See other posts from Stack Overflow or by Tony
Published on 2010-05-18T10:50:31Z Indexed on 2010/05/18 11:00 UTC
Read the original article Hit count: 179

Filed under:
|
|

I am creating a JButton which includes a specific ImageIcon. The main issue is that the original icon size is much bigger than the button size. As result when the button is displayed, only part of the icon can be seen. What is the method that "resize" an ImageIcon i n order to make it fit inside a JButton?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing