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!

How to set icon that fit(stretch) to JLabel?

843806Jun 16 2009 — edited Jun 17 2009
Let say i have aa image(w = 50, h = 50) and JLabel(w = 100, h = 100)

how to fit the image to JLabel by JLabel.setIcon(image)?

thx..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2009
Added on Jun 16 2009
14 comments
2,125 views