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 Have all menuitems in own class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Have all menuitems in own class" Watch "Have all menuitems in own class" New topic
Author

Have all menuitems in own class

Torvald Helmer
Greenhorn

Joined: Oct 26, 2005
Posts: 8
I have a class Frame like this:




I want to have a class Menu like this, with all
menuitems:



But this not work. What am I doing wrong? Does anyone
have a idea on how to do this?

When I try to add menutiem in the Frame-class, it works
fine. But I want to have all related to the menu in a
separate file.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Torvald Helmer
Greenhorn

Joined: Oct 26, 2005
Posts: 8
Thanks!
[ August 20, 2007: Message edited by: Torvald Helmer ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Have all menuitems in own class