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.