i have tried to make paint application in java .... i have added the canvas to the center of the frame using borderlayout ... n then added the menubar ...using setmenubar option .... but whenever i click on the menubar ....the menuitems are overlapped by the canvas .... so please help me out