Java Swing: Resize JMenuItem's icon, either automatically or programatically?

Posted by TGP1994 on Stack Overflow See other posts from Stack Overflow or by TGP1994
Published on 2011-02-16T00:36:08Z Indexed on 2011/02/16 7:25 UTC
Read the original article Hit count: 140

Filed under:
|
|

It seems that JMenuItems don't automatically resize any image icon that's assigned to them, and from what I can tell, there isn't a property that makes them automatically do that, either.

Is anyone aware of a way that I can programatically resize the Icon for a JMenuItem? It seems like the Icon object is lacking functionality as it is, unless there's some other function that can actually deal with Icon objects.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing