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

Background window is displayed in the foreground  RSS feed

 
Seema Sharma
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
On clicking on button each time, instance windows opens . What is observed is that on 1st click on button, 1st window is opened. Now clicking 2nd time on button, before this window is displayed completely. We move to the first window. It is observed that 2nd window appears over the 1st window.
How can this situation be prevented?

Thanks in Advance,
Seema
 
Seema Sharma
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The code is not working using the method toFront(). Can i prevent click on the button unless the page is displayed completely.
Do i need to make use of Thread.Sleep(xxxx)?

Thanks,
Seema
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!