I have a JDialog which is a login screen for my application. There is a common scenario in which this dialog is opened when another application is already running on the screen where said dialog is supposed to appear. That application is always on top.
I'm trying to make my dilaog appear on top of that application, but to no avail. I've tried setAlwaysOnTop(), getFocus() and toFront()