I am using a JWindow object in my Java application to simulate a mouseover dropdown menu. When the user mouses over a JLabel, the window appears and remains until the mouse exits either the label or the newly visible window. My problem is that each time the user performs this action, a new entry in the task bar at the bottom of the screen appears, with no title or icon, and disappears as soon as setVisible(false) is called on the window.
I tried switching to an undecorated JDialog, and this fixed my task bar problem but introduced a new one. When setVisible(true) is called on the JDialog, the focus is taken away from my frame. The color of the title bar changes to indicate this, which looks unprofessional.
Using an undecorated JFrame, both of the above problems occurred
I do not wish to use a JInternalFrame as that would require a complete redesign of my interface (switching to the JDesktopPane structure), and I do not require any of the other functionality of the JInternalFrame.
Any ideas?