Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    1,557

    Re: Menus will not appear in JMenubar

    What is supposed to be in the variable frame?
    Where is the frame variable defined?
    What class is the setJMenuBar() method in? Where is there an instance of that class inside of the MenuExample...
  2. Replies
    8
    Views
    1,557

    Re: Menus will not appear in JMenubar

    Where is line 87? Is it in the main() method? Move the code to the constructor where the variable: menuBar is available.
  3. Replies
    8
    Views
    1,557

    Re: Menus will not appear in JMenubar

    Hard to say without seeing the error message.
    Please copy the full text of the error messages and paste it here.
  4. Replies
    8
    Views
    1,557

    Re: Menus will not appear in JMenubar

    Read the API doc for the JFrame class to see how to set its menu bar.
    The add() method is for putting components in the content pane.
Results 1 to 4 of 4