I have a JLabel
on a JFrame
(Java, Swing) with an image
on it, but i would like to do something like icons on the system preferences on Mac OS
, which is a JLabel
with an image and when you click on it, the image got some kind of shadow all over the image.
Asked
Active
Viewed 172 times
1

nIcE cOw
- 24,468
- 7
- 50
- 143

Joaquin Pereira
- 311
- 2
- 14
-
3Welcome to SO, please provide example pictures of what you mean and also what you have tried/have so far to help people help you. Thanks. Yu might want to check out [this post](http://stackoverflow.com/questions/15233526/image-with-shadow-and-rounded-edges-in-java-swing) – Java Devil Jul 05 '13 at 00:28
1 Answers
1
One way is set the normal icon, as well as a 'shaded' version for the pressed/ rollover icon etc.

Andrew Thompson
- 168,117
- 40
- 217
- 433