How do you make a modal JDialog remain on top when you switch between applications. I've noticed this works JOptionPane, but it doesn't work with JDialog. Also, if you Alt-Tab between windows this problem does not occur, only when you switch between windows by clicking the icons on the taskbar. WindowsNT, JDK 1.3.1
you can't set the parent window to null, so instead of JDialog.showMessageDialog(null, "fjdskajf") you would have JDialog.showMessageDialog(yourparentWindow, "fjdlsajlf")