Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Simple Question  RSS feed

 
Shalu Ban
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am afraid this could be a very simple question. :roll:
I have developed a splash scren using JWindow. It displays for 4 secs and disappears. I want to start my application immediately after displaying the splash screen. Should I instantiate the required class in the Splash window class? Could anyone give me some example.
[ February 18, 2003: Message edited by: Shal Ban ]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The purpose of the splash screen is to give the user some feedback while the program starts up. Your main program should start two threads... a thread that does all the startup stuff, and a thread that displays the splash screen. The splash screen thread should wait for the startup thread to die using join(), and then hide the splash screen and set the app visible.
 
Jason Moors
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this link, I think it's what you want!
Splash Screen
Jason.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!