Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAVA ImageIcon and JButton resizing problem -- please go easy on me. :)?

 
Nathe Chan
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am stuck on a JAVA problem again.

I want to figure out how to do a ImageIcon resize.

Here is my following code:



If anyone can explain to me how to resize the ImageIcon and the Jbutton, that would be great. By the way, I am a very simple-minded person. So, please explain instructions carefully, so that it is in an understandable manner for me.

- Nathe
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UI related.
Moving.
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nathe,
Welcome to the Ranch

Since you are a beginner, I would recommend manipulating the actual image size itself to achieve the desired result.
 
Nathe Chan
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay. Thanks Buddy! That's what I would do now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic