Posted on 2003-02-24
I'm using a menubar on top of a frame and I have added it on the NORTH field of a BorderLayout of the frame.
My problem is that the menubar is changed when I'm moving through various windows and it does not return to the original state of the menubar (it is not repainted).
How can I avoid this problem and clear the menubar each time? Should I repaint it each time by overriding the methods update and repaint?