Show JDialog on Windows taskbar
I'm trying to display a JDialog in Windows. How do I show a JDialog (like JFrame ) on my Windows taskbar? A dialog itself cannot have a task bar entry, but you can construct a frame that does not have any visible effect and use it as a parent for the dialog. Then it will look like the dialog has a task bar entry. The following code shows you how to do it: class MyDialog extends JDialog { private static final List<Image> ICONS = Arrays.asList( new ImageIcon("icon_16.png").getImage(), new ImageIcon("icon_32.png").getImage(), new ImageIcon("icon_64.png").getImage()); MyDialog() { super(new