Forums Register Login

JButton (pressed state)

+Pie Number of slices to send: Send
Hi to all,
I am using JButton(Image Icon). Now I want that when i click this button(image), it should look pressed. However I do not want to use another ImageIcons for methods (like setRolloverIcon,setPressedIcons etc).
I just want my button image to be looked pressed, when i click it.
Please help me.
Manoj Tyagi
It's a tiny ad only because the water is so cold.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1106 times.
Similar Threads
Custom (image) button
how to simulate a button click
how to resize image to screen size
How to place image on JButton
Button state tracking
More...

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