Where is EditPane from? Is it a class you wrote yourself, or is it from some other source? (like jEdit, XMLMind, or JEditorPane?)
If the component doesn't have some built in capability to handle menus (and I don't believe any of the ones I linked do...), you're going to have to add the menu and the editor to another panel, and then add that panel to the frame (or another panel that gets added to the frame...).
Write once, run anywhere, because there's nowhere to hide! - /. A.C.