I was just wondering if there was a way to have an Graphics object that is a String (g.drawString(...)) or an Image (g.drawImage(...)) disappear after a set time once it has been rendered to the screen. I am writing a game in Java and would like a welcome message to be displayed once the game is started for a short amount of time as in 10 - 20 seconds. I am using the Slick2D gaming library which is a wrapper for the lwjgl library for a little background. I can't seem to find a solution on this site or other forums and such as well as the Java documentation. If I missed a solution to this that has already been documented then I apologize for the time waisted, but would appreciate a link to said solution. I've tried implementing a while loop and a counter to see if that would work but with how the render method works it runs through it either too quickly or causes the game to hang or runs through the loop before the play state is entered from the main menu. I'm guessing this solution wouldn't work or be efficient since the render method is ran hundreds of times a second to make a flawless appearance of images on the screen.
tl;dr
I would like to know how to have a Graphics object be rendered to the screen, stay for a few seconds, then disappear from the screen. Any feedback is appreciated, thank you for reading!