How to add fade/fade out effects to a JLabel
Hello I am trying to create a Java game and need to add some effects to my label. I have the following questions How to add fade in/ fade out effects to my label . I have a JLabel but I need a shape for it, possibly a rectangle or a cloud shape . How can I get that done ? You can use a AlphaComposite to change the opactiy level of a component... Now, with a little clever use of a timer, you can make the label fade in and out or simply control the opacity as you please... public class TestFadeLabel { public static void main(String[] args) { new TestFadeLabel(); } public TestFadeLabel() {