JLabel text shadow

I have a JLabel with text. The text displays in different colors and since I also want the background to change color, I found sometimes the text it's hard to read. That is why I want to add a shadow to the font like this: React Native font outline / textShadow

Can someone tell me how to get this effect in a Java Swing label or, if not possible, which Swing component I should use instead?



Read more here: https://stackoverflow.com/questions/68461904/jlabel-text-shadow

Content Attribution

This content was originally published by GalliadII at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: