Craig Boyd wrote:Am I not calling the MyMenuBar correctly?
I assume you're trying to create a new one? Then you need a "new".
Edit: although that still won't work, since
MyMenuBar isn't a
JMenuBar.
So you can either do this:
Or, and I think this is more sensible, have
MyMenuBar extend
JMenuBar, and swap your
main() method for a constructor. For example: