File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JAVA ImageIcon and JButton resizing problem -- please go easy on me. :)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JAVA ImageIcon and JButton resizing problem -- please go easy on me. :)?" Watch "JAVA ImageIcon and JButton resizing problem -- please go easy on me. :)?" New topic
Author

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

Nathe Chan
Ranch Hand

Joined: Mar 12, 2009
Posts: 33
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

Joined: Jul 26, 2007
Posts: 10255
    
    8

UI related.
Moving.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10255
    
    8

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

Joined: Mar 12, 2009
Posts: 33
Okay. Thanks Buddy! That's what I would do now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAVA ImageIcon and JButton resizing problem -- please go easy on me. :)?