I\'m using the below code to showing JDialog on taskbar and is perfectly working in JDK 1.6.
public class test8 {
public static void main(String[] arg
The problem is that certain constructors of JDialog
create a dummy frame owner if the owner is null
for historical reasons. But a Dialog
must not have an owner to be visible like a top-level window. I.e.
JDialog d=new JDialog((Window)null);
d.setModalityType(ModalityType.TOOLKIT_MODAL);
d.setVisible(true);
will work.