title: Hide window from task bar
body: <p>I'm trying to develop my own application for placing notes on the desktop (similar to Sticky Notes under Windows OS). Everything is working nicely but I am still facing a problem: since I want the application to be as &quot;minimal&quot; as possible, I would like it not to appear in the taskbar, so that it doesn't bother the user. Eventually, I would like it to appear in the system tray but, for the moment, this is not the point. To make the application cross-platform, I am developing it in Java, and I read that in order not to make it appear in the taskbar one could use a JDialog. Now my class is</p>
  <pre><code>public class NoteWindow extends JDialog implements WindowListener, WindowFocusListener, KeyListener, ComponentListener,
          MouseMotionListener, MouseListener
  </code></pre>
  <p>and in the code I also put</p>
  <pre><code>setType(Type.UTILITY);
  setBounds(100, 100, 235, 235);
  getContentPane().setLayout(null);
  setUndecorated(true);
  </code></pre>
  <p>but it doesn't seem to be working: under Linux Mint 17.2 I still see the windows (each window corresponding to a note) in the taskbar (or its equivalent under Linux).</p>
  <p>Am I missing something?</p>
  <h2>EDIT</h2>
  <p>I post an image to show what I mean, and what I would like not to see:</p>
  <p><a href="https://i.stack.imgur.com/cXRLY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cXRLY.png" alt="screenshot" /></a></p>