I have a JPanel window with a few things drawn on it. I am trying to figure out how I can flash the screen, like one simple flash, to get a users attention? I found a previous question on this but it did not work for what I am trying to do. I have a continuous loop that updates the screen based on a few variables. I would just like the screen to flash at a certain point and then go back to normal.
Thanks!
You can use Trident to interpolate various properties in your class. Here is a demo that animates panel’s background:
EDIT: comments to auto hide a popup
You can use timer to hide a popup, for example: