I have a JFrame containing a JTabbedPane with 2 tabs and a JMenubar with a few menus and menu items. When I click on the menus when tab1 is highlighted everything behaves how it should in the ordering, but when I click on tab2 (which has a painted canvas on it) I find the menu is hidden behind the canvas. Is this due to the stacking order?