I am using an htmlloader to view a pdf. I have some buttons on the mainwindow. I use PopUpManager to display a titlewindow. From that titlewindow i spawn another titlewindow. When the second titlewindow is closed, focus does not fall back to the first one. The html window is on top and everthing around it is still greyed out. PopUpManager.toFront() does not work. I have tried so many things. I think I am missing something basic here. Could anyone help.