Monday, July 18, 2022

[FIXED] How to terminate a JFrame after a specific amount of time?

Issue

I want a JFrame to display a gif, which is my loading screen and then automatically terminate. I am OK with either terminating it after a particular time period or after it completes displaying the gif. Is there any way to do this?


Solution

to display a gif, which is my loading screen and then automatically terminate.

Sounds like you might want a splash screen.

See the section in the Swing tutorial on How to Create a Splash Screen for more information and a working example.



Answered By - camickr
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.