Show JDialog on Windows taskbar

I found the answer to your question because I had the opposite problem. I had a JDialog that was showing in the taskbar and it took me forever to figure out how to prevent it from showing. Turns out if you pass a null parent to the JDialog constructor, your dialog will show in the taskbar.

JDialog dialog = new JDialog((Dialog)null);

The cast to java.awt.Dialog is to avoid the ambiguous constructor.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)