Results 1 to 6 of 6
  1. #1
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default Help about Java Menubar

    Hello i want to do java menu programming.
    i have one menubar that contain two menus .
    each menu contain two menu item.
    i have designed 4 panel for 4 menu items.
    when i click the menu button the panel would dispay in main frame.
    i dont know to make link menu items and panel.

    my main frame contain one menu bar only.


    help me.
    advance Thanks for ur valuable suggestions
    Mak
    (Living @ Virtual World)

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Your JMenuItem's are a subclass of JButton. You need ActionPerformed listeners for each one. The listeners should update the GUI.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  6. #6
    sp_29 is offline Member
    Join Date
    Feb 2009
    Location
    philippines
    Posts
    16
    Rep Power
    0

    Wink suggestions only

    make sure that you have added the menubar to the menu.
    :p

Similar Threads

  1. menubar in splitpane
    By masa in forum AWT / Swing
    Replies: 1
    Last Post: 12-16-2008, 09:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •