Find the name of the Menu of a particular menuItem

Hello every one,
yesterday I post the same question, which is when user click on a particular menuitem,
how can I get the name of the Menu.
The suggestions is to use getParent. However, it is strange to find that when I use:
JMenuItem source = (JMenuItem)(e.getSource());
Container con = source.getParent();
The class for con is "JPopupMenu" rather than Menu. I can not find the name of it as well.
I never use any JPopupMenu in my program. I use JRadioButtonMenuItem for the MenuItem.
Can anyone advice for that?
Thank you very much.

JMenu adds the menuitems to a JPopupMenu. Try
JPopupMenu popupmenu = (JPopupMenu)e.getSource().getParent();
JMenu menu = (JMenu)popupmenu.getInvoker();

Similar Messages

  • TS3376 How do I find the menue where I can select the list of previous phones I have had and my new one ? at the moment it is still set to an old one so everytime I try to set it up it tells me it it's the wrong one - gggrrrrr help please

    How do I find the menue where I can select the list of previous phones I have had and my new one ? at the moment it is still set to an old one so everytime I try to set it up it tells me it it's the wrong one - gggrrrrr help please

    iPods (except for iPod touch) are not linked to any iTunes "account."  They are associated with your iTunes library. The account in iTunes is your Apple ID, and that is used to buy and download content from the iTunes Store.  It is not required to use an iPod.
    The 1st (and 2nd) gen shuffle can only be used with one iTunes library at a time.  When you connect it, iTunes should prompt you to start using it with your iTunes library, and warn that the shuffle's existing content will be erased.  Have iTunes erase the shuffle, and it will be associated with your iTunes library going forward.  You can then add content to your shuffle.
    The need for the previous owner's Apple ID and password should only come up if you are trying to transfer existing content from the shuffle to your iTunes library, AND the previous owner had content purchased from the iTunes Store.  Just cancel out of that step, if iTunes asks.

  • How to find the menu path ?

    Hi all,
    I have one doubt how do we find out the correct menupath if we know the t-code ?
    for example, SE11 -DDIC
    we can also obtain the same DDIC screen via menupath from SAP main screen.
    if I know only t-code.how can i find out the menupath ?
    thnks and rgds,
    raghul

    Hi Raghul,
      You can go to the transaction search_sap_menu
    for finding the menu path.
    check this link:
    http://www.sap-basis-abap.com/sapgeneral/system-path-and-transaction-code-mapping.htm
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Need Help in finding the Menu Path's for the below topics

    Hi,
    Where can i get the menu paths for the below topics in SAP syste. I have searched in the system,But couldnot find the Menu Path's for the below topics.Kindly help me in finding the configuration Path for the below...
    1)Public tendering process
    2)Grants Management
    3)Tax & Revenue management
    4)Public sector accounting --> Budget formulation, preparation, execution & Monitoring.
    Thanks
    Rajitha M

    Hi,
    Check for the relevant path in IMG in Public Sector Management.  The prerequisites being configuration of Financial accounting
    sub modules.
    Best Regards,
    Sadashivan

  • I Can't find the menu toolbar

    help! I can't find the menu tool bar on my phone anywhere! I want to change the notification settings so that when I receive a Skype SMS it will notify me on my device. right now it only shows the notification as the SMS comes in but it disappears a few seconds after so if i don't see the message come in AS it is received I never know when someone has sent me a message unless I open up skype. can I get help with both of these problems please?

    okay, now my toolbar has disappeared and won't come back. Help!

  • I can't find the menu option in iTunes to authorize my PC.  Where is it?

    I can't find the menu option in iTunes to authorize my
    PC.  Where is it?

    Press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
    (113428)

  • HT1420 where do I find the menu in the I Tunes Store?

    Where do I find the menu in the I tunes Store?

    There's a couple of ways to get through to the authorisation controls in the 11.0.x versions.
    The control is still in the Store menu, but first (if you're using iTunes versions 11.0.x) you might need to bring up the menu bar to see the Store menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Then you'll find the control in the Store menu:
    Alternatively, if you don't want to bring up the menu bar, it's still possible to get into the authorise controls via nested menus accessible from the wee boxy icon. Here's a screenshot of where to find them:

  • My screen is magnified on full and i can't find the menu bar and the doc.

    My screen is mangified on full and i can't find the menu bar and the dock.

    Hello, Melorw44.
    Try pressing the <esc> (Escape) key.
    If <esc> doesn't clear your full screen, restart your Mac.  When you launch Safari after the restart, the normal sized window should open.
    BTW, three finger double tap applies to trackpads. From your responses, I infer that you are not using a trackpad.  However, if you are using a wireless mouse (or other wireless pointing device), low batteries in the device might be causing your inability to control your view.
    Message was edited by: EZ Jim
    Mac OSX 10.8.2

  • I can't find the menu to deactivate a computer and activate another one, as it tells me to do in the support page

    the help page tells me to go to itunes store menu and find the deactivate button, but I  can't find the menu, how do I get to it?

    At the top of iTunes (the program not the store screen) do you not have a Store menu, alongside File , Edit , View etc ? There should then be De-Authorise This Computer option below it :

  • Where do you find the menu to download the CC updates?

    Where do you find the menu to download the CC updates for Lightroom?

    It's in the creative cloud application manager.

  • Find the menu path

    Hi Experts,
    How do you find the menu path for a given transaction in SAP? 
    Thanks and Regards,
    Logu

    Hi,
    SEARCH_SAP_MENU- Show the menu path to use to execute a given tcode. You can search by transaction code or menu text. 
    Reward if helpful.
    Regards,
    Ramya

  • How to find the location of a particular font in the framemaker book?

    Hi All,
    please help me in finding the location of a particular type of font in the framemaker book. I was using the following procedure to find out earlier:
    Find > Character Format > (set the character format) > Search.
    Now I am unable to locate a particular type of font using the mentioned procedure.
    Please help me out.
    Thanks in adnavce,
    Mindevil

    This assumes that the font instance being searched for is an override:
    Click in some text in one of the book files.
    Edit > Find/Change
    [ Character Format ...]
    This pops up a Character Format dialog.
    Assuming you are on Windows:
    [Ctrl]+[Shift]+[F8] to set everything to As-Is/blank.
    In Family:, select the font being sought. [Set]
    Back in the Find dialog...
    Look in: <*> Book
    [Find]
    If the font instance is part of a Paragraph Format or Character Format, you can search by Para Tag name or Char Tag name (which is yet another reason why overrides are a problem).
    Or you can save out all the book files as MIF and search with a plaintext editor, but that requires a nominal knowledge of MIF.
    I might add that steps 1-3 above are covered in FM7.1 Help (and presumably the printed manual back then), but are absent for FM9, and I'm guessing that they never returned in later versions either.

  • H we find the balance for a particular gl account

    h we find the balance for a particular gl account for a particular fiscal year

    Try T-code FS10N it will display G/L balance for a fiscal year period wise & busiseness area wise.
    anya

  • Why can't I find the menu bar when I open iTunes on my Windows 8 lap top

    I have downloaded some music in iTunes on my iPod Touch [version 8.1.2]. I noticed that the iTunes  also appears on my Windows 8 laptop and when I sign in the music I purchased appears but I cannot download it because the computer is, "not authorised". My account details show that 3 devices are connected to iTunes.  I checked  on Google how to authorize a computer and it says: choose store > authorize this computer  from the menu bar but I cannot find a menu bar. Can anyone please tell me what to do?

    Press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
    (120485)

  • HT1657 trying to rent a movie on apple tv for the first time and can't do it without authorizing my computer on itunes store but can't find the menu on the iTunes site that lets me authorize my computer. any thoughts out there?

    trying to rent a movie on apple tv for the first time and have to authorize my computer but can't find the itunes menu that allows me to do this.  any thoughts out there? 

    If the computer's running Mac OS X, move the cursor to the very top of the computer's screen, click on Store, and choose Authorize this Computer.
    If the computer's running Windows, press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
    (98261)

Maybe you are looking for

  • BI Publisher desktop in MS word ( error when preview ) Java class not find

    The problem is: open MS Word Log on successfully to Oracle BI in the MS Word with the desktop add-in Successfully access to the Answer's request results and get the field to rtf template. Pressing preview Error is shown as below: Error No: 53 Desc: F

  • I'm having trouble with blocked plug -in

    Hi, I'm having some trouble when going on to websites, I'm continually faced with BLOCKED PLUG-IN....coming on screen, saying my Adobe flash player is out of date. I have downloaded the new version so many times it's ridiculous, however to no avail,

  • Just bought a dv7 and subwoofer isn't working.

    Just bought a new dv7 computer and the laptop does not seem to be working, i don't hear any sound coming from the subwoofer at all. Anyone have any idea how to activate it, or even how to check to make sure if it is on or off. I can't seem to find an

  • Question about some statement

    Hello Gurus,        as for a statement "The MBW job BI_BTCH__FX_PAYMENT_DATA=X10M and itu2019s child job ended with completed Abnormally status.", I have some question as follows:      (1) where does they check out this job " BI_BTCH__FX_PAYMENT_DATA

  • ICloud made a mess of my Outlook.  How do I put it back?

    I went through over 3000 contacts in Outlook and carefully deleted duplicates and old contacts and made corrections.  Then I checked the box in the iCloud Control Panel for "Contacts with Outlook."  After it uploaded all my contacts, I opened the new