Results 1 to 2 of 2
  1. #1
    arafat is offline Member
    Join Date
    Feb 2016
    Location
    India
    Posts
    1
    Rep Power
    0

    Lightbulb Making menubar same across all jframes form

    Hello Guys,

    I have started learning java and as i have designed 4 jforms i want the same menubar across all 4jframes. How do i apply same menubar with all its events.

    do i need to create a class and define the menubar and then use them in jforms ? if yes how to do it ?

    I am using Netbeans IDE 8.1

    Thank you.

    Regards,
    Arafat

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Making menubar same across all jframes form

    Just try it out and see what works. Try the same menu instance. If that doesn't work, try a new instance. There is nothing preventing multiple instances from sharing the same event listeners. To make it easy on yourself, just to some experimentation with two JFrames rather than four.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Making a registration form - Lots of errors please help!
    By FermataPlays in forum AWT / Swing
    Replies: 1
    Last Post: 04-04-2015, 02:53 AM
  2. MenuBar
    By Apprentice123 in forum AWT / Swing
    Replies: 6
    Last Post: 09-15-2012, 04:24 AM
  3. About MenuBar
    By makpandian in forum AWT / Swing
    Replies: 1
    Last Post: 03-20-2009, 11:50 AM
  4. Help about Java Menubar
    By makpandian in forum AWT / Swing
    Replies: 5
    Last Post: 02-09-2009, 08:17 AM
  5. menubar in splitpane
    By masa in forum AWT / Swing
    Replies: 1
    Last Post: 12-16-2008, 09:01 AM

Tags for this Thread

Posting Permissions

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