This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding JMenus to EditPanes

 
Sasha Barazandeh
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...).

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic