Rob Camick wrote:I have no idea what Notepad
Ah, but you do.
It looks like you are trying to prevent your dialog from losing focus if you then click on Notepad.
Exactly.
This is a bad design you should never prevent a user from using another application.
Might be more prudent to ask WHY I need this design, before rushing with a judgment. I am simulating an ATM machine for very computer-illiterate users who only have numeric keypad anyway, and if any 3rd party software pops up with a dialog, they currently have no recourse other than rebooting.
There are methods like alwaysOnTop() which will make sure your dialog is always visible. Or there might be times you want to use the toFront() method to make the dialog behave like a notification popup.
Thanks, I've tried, neither did it for me :-(
Any leads welcome.