Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

modeless dialog always on top  RSS feed

 
Luna Bora
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, When I created modeless dialog box, it always stays on top of the frame which created it, it is hiding the original frame which created it, if I want to see the original frame, I have to move it manually. Is this the default property of modeless dialog? how to override this? Thanks for any reply.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Luna,
Yes that is the default behavior. A dialog will never be hidden by its parent. That is the main idea behind a dialog. If you want to have popup containers can be swapped around (parent in front on child or vice versa) then you should be using frames instead.
Regards,
Manfred.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!