This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

execution of code is not sequential  RSS feed

 
ritu mahendru
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have a problem that the written below is not executed sequentially:
if (rt==JOptionPane.YES_OPTION)
{
System.out.println("Inside yes of message");
new SaveDialog(this,frmloc);
print();
saveflg = 0;
}
the function print() is executed before SaveDialog is executed
please reply soon its urgent
ritu
 
red goliath
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this could be due to the hardware perfomance.
the time taken to realise the visual component completely is more than the time taken to print on the console.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!