Where do you call the code to create the JMenuBar? Where do you add it to the JFrame?
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
What class is the createMenuBar() method in? You need to have a reference to that class to be able to call its methods.
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
What class is the createMenuBar() method in? Where is it defined?
Say it's in a class named: TheClass
TheClass aRefToClass = new TheClass(); // create an instance of the class
aRefToClass.createMenuBar(); // call the method that is in the class
NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16