Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JFrame's icon image get smaller when displayed

843805Apr 23 2007 — edited Apr 23 2007
Hello, all!
I use this code to load an icon to a JFrame:
Image icone = 
    new ImageIcon(getClass().getResource("/icone.gif")).getImage();
setIconImage(icone);
But why the image that is displayed is smaller than the real image? The icons that I made are 16x16 pixels, but I see that the JFrame shows them like 14x14 pixels or less. How do I make the JFrame display the icons in their real size?
Thank you.

Marcos
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2007
Added on Apr 23 2007
2 comments
275 views