Hi,
I am writing a small game to improve my
Java knowledge. When the game setups, a lot of calculations are made and a lot of data is stored to a flat file. This takes about 5 seconds.
Whilst this is happening, I want a message to appear on the screen saying "Please wait".
However, before this message can be displayed properly, the program starts on the calculations. Only when the calculations are finished does the message appear briefly.
Is there a method I can call or a piece of code I can use which checks that the message has been displayed before the processor intensive code is carried out?
Thanks for any help on this matter.