An image drawn by drawimage on top of Swing application flikers and not stable
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.
Re: An image drawn by drawimage on top of Swing application flikers and not stable
Bad idea. Probably doable, like most things in programming, but certainly not trivial. Certainly not easily doable via custom painting.
I want the logo to span over the menubar and part of the mainpanel.
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem. Note that the first 'S' stands for Short.