Forums Register Login

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

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
UI related.
Moving.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Okay. Thanks Buddy! That's what I would do now.
The fastest and most reliable components of any system are those that are not there. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1658 times.
Similar Threads
jbutton background image
JAVA JButton Functionality
Mouse shift event coding - to trigger a predetermined sequence of images to a GUI
JAVA Compilation problem. Problem with importing code using the Get Method
JButton with a round image
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:15:12.