File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Adding JMenus to EditPanes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding JMenus to EditPanes" Watch "Adding JMenus to EditPanes" New topic
Author

Adding JMenus to EditPanes

Sasha Barazandeh
Greenhorn

Joined: May 01, 2007
Posts: 3
I have a JPanel which consists of 4 EditPanes( each editpane has its own menu); how do I add them to my JPanel and then to my JFrame so that the menus will show up?

Thanks...
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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...).



-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding JMenus to EditPanes
 
Similar Threads
How do you refresh a panel - Need Help
inheritance from more that once source....
Logos or Pics for JPanel
Can I make a JPanel perform an action?
Java Group Boxes