I have a Swing Java application, the interface consists of a mainframe, menuBar that contains many drop menus. At the top right corner, I draw a logo using drawImage(). the logo spans over the menuBar and the mainPanel as well.

When I open some(not all) components from the drop down menus in the menuBar, the logo starts to appear/disappear(flash).

The idea to put the logo as an icon for JLabel and add the JLabel to a panel does not work with me because I want the logo to span over the menubar and part of the mainpanel.