Popupmenu and menu one makes other disappear?

Hi,
Ive got a class which creates a popup menu and exposes functions to show it.
Ive just added this new function to enable the user to add the same menuitems to Menu
public Menu getMenu(String Title)
Menu options = new Menu(Title);
options.add(open);
options.addSeparator();
options.add(back);
options.add(forward);
options.add(lastHistory);
options.addSeparator();
options.add(incFont);
options.add(decFont);
return options;
however when I call this function my popup menu contains nothing but the 2 seperators! What is going on?
PS the popup contains exactly the same elements as the normal Menu

I'm having a very similar problem. I create a JPopupMenu (as a context, right click, menu) and JMenu on a JMenuBar with the exact same JMenuItems. I bring up the JMenu and the items are all there. I bring up my JPopupMenu and all items are there but when I go back to the JMenu on my JMenuBar all the items have been removed.
This seems like a bug to me. Any ideas?

Similar Messages

  • When I open several Raw files and edit one, the others disappear

    Sometimes I open numerous raw files simultaneously and they appear on the left in a sidebar. Then I choose one to edit and when finished the others have disappeared and I have to load them again. Is there a keystroke that will bring them back without entirely reloading? Are they still in PSE but hidden? This seems like peculiar and poor design. (Mac version)

    Using Preview is quite simple. I open the group of files I want to view and edit. I select one and drag it on top of the PSE icon in the dock, and it opens in the PSE raw editor. When I've saved the file I simply click on the Preview dock icon to return to that app. and repeat the select-and-drag to PSE. Preview provides a full screen display of file icons for the files I want to edit, so it is quite quick and transparent.
    I don't necessarily want to Open a file; I might simply Save it from the raw editor. If I have 10 raw files, five of which I want to edit and Open, 3 of which I don't want to edit, and 2 of which I want to Save within the raw editor, the simplicity you describe disappears. Using my Preview-to-PSE scheme, I work on one file at a time and dispose of it when done. I don't have to keep track of which file needs what disposition, as seems to be the case in the process you describe. Please correct me where I'm mistaken.

  • AS3, .htmltext,  .embedFont and/or .antiAliasType makes b disappear

    I've been trying to find a solution for this problem for a while and I still can't get a working solution. I've googled the problem and it looks like it's a known issue yet I still can't get a definitive fix that actually works.
    I create a dynamic text field that's populated with html text from an .xml file.  It looks like .embedFont and/or .antiAliasType makes the html <b> formatting disappear. I HAVE to have the bold text per client needs.
    Here's my code that was written based on posts I've seen online by other people with the same issue.
    "fontHelvetica" is a font that is in the .fla's library and it is the linkage name. 
    Every format works except the html <b>.
    How do I make the <b> work?
    Is there a definitive solution or a link to a site that has a working solution?
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.text.TextFieldAutoSize;
    import flash.text.Font;
    var fontIntroDisclaim:Font = new fontHelvetica();
    var introDsclmFrmt:TextFormat = new TextFormat();
        introDsclmFrmt.font = fontIntroDisclaim.fontName;
        introDsclmFrmt.color = 0xFFFFFF;
        introDsclmFrmt.size = 16;
        introDsclmFrmt.letterSpacing = .1;
        introDsclmFrmt.leading = 01;
    var introDsclmTxt:TextField = new TextField();
        introDsclmTxt.width = 1150;
        introDsclmTxt.x = introDsclmTxt.y = 0;
        introDsclmTxt.multiline = true;
        introDsclmTxt.selectable = false;
        introDsclmTxt.wordWrap = true;
        introDsclmTxt.defaultTextFormat = introDsclmFrmt;
        introDsclmTxt.autoSize = TextFieldAutoSize.LEFT;
        introDsclmTxt.antiAliasType = AntiAliasType.ADVANCED;
        introDsclmTxt.embedFonts = true;
    introDsclmTxt.htmlText = ifxLandingDisclaimer;
    introDsclmTxt.setTextFormat(introDsclmFrmt);
    intro1_mc.introDisclaim_mc.addChild(introDsclmTxt);
    Thanks in advance for your response.
    Zak.

    Thanks for the response Kglad. You suggestion helped me to fix the issue.

  • Drop Down Menu Selection - Make Other Drop Down Menus Visible

    I am having some trouble with a simple if-else statement. When a certain selection is made in a drop down box, I would like two other drop down menus to appear. (At runtime, they are hidden.) The current problem is that when I try and select anything in the drop down menu, it will only allow me to select this one option. (If I try to select anything else, it reverts back to the same thing every time.) If I set the "if" statement to trigger for something else, then that option is all it will display and so on. I have made plenty of these types of scripts in other areas of this PDF, but I can't figure out why it isn't doing what I want it to now.
    The "change" event is what I currently have this set to. I have also set it for the "enter" event with no change.
    if (this.rawValue = "Ankle/Brachial Index (ABI) - 93922")
    ABI.presence = "visible"
    TBI.presence = "visible"
    else
    ABI.presence = "hidden"
    TBI.presence = "hidden"
    If there's a better way to do this than the method  I am attempting to use, please don't hesitate to suggest it. I am definitely open to learning new methods.

    Thanks, man! I knew it was something simple I was missing. Those are my favorite kind of fixes.

  • Button Top and Bottom - one displays other not

    I created a report region and added a button to it:
    Create a button in a region position
    Button name: SUBMIT
    Label: Submit
    Button Type: Image
    Image Name: #COMPANY_IMAGES#lisa.gif
    Position: Top and Bottom of region
    Then I viewed the page - the top image displays correctly, but the bottom one doesn't. So viewing page source I saw, that Top image src attribute is
    wwv_flow_file_mgr.get_file?p_security_group_id=505603948315924&p_fname=lisa.gif
    whereas the Bottom image had src of
    /i/wwv_flow_file_mgr.get_file?p_security_group_id=505603948315924&p_fname=lisa.gif
    Looks like a bug to me :-/
    I'll create two buttons now (one for top and other for bottom button), no worries, but I thought you should know.

    Kaja,
    Yes it's a bug. Thanks for letting us know.
    Scott

  • Can i fire process and javascript one after other???

    What i am basically trying to do is display a alert message which tell that a specific process(i.e. add, delete, etc.) has taken place.
    Here, I have created a process for each and have written a query in 'Process' block and fire it condition of a button.
    Suppose for insertion, I have created an 'insert query' and condition is that it should happen in click of 'insert button'.
    Simultaneously, I have also wriitten target URL for that button to a javascript.
    But, the trouble I am getting is that without inserting data, the button directly fires javascript and thus no process takes place.
    Does anyone have solution or an alternative??? Plz help soon.

    I have a solution for that on my demo page:
    http://htmldb.oracle.com/pls/otn/f?p=31517:50
    Have a look and see if it helps. The link to the related thread is also there.
    Denes Kubicek

  • I have two accounts ( mine and one other) which show when I log on,do not need the second one showing so how do I make it "disappear" (not deleted)?

    I have two accounts (A and B) from the same provider on my pc, B is also on another pc and used by someone other than me. Thus, B on my pc is a duplicate and I do not want it displayed on my pc. How do I get it off?

    What's wrong with deleting B?

  • My ipod nano 7th gen no longer shows "Playlists" in the music menu. No changes made other than deleting one and adding one playlist to those synced. Synced fine in late February. Not working as of 3/7/2014.

    My ipod nano 7th gen no longer shows "Playlists" in the music menu. No changes made other than deleting one and adding one playlist to those synced. Synced fine in late February. Not working as of 3/7/2014.

    I would either say that the iOS is correpted due to a software glitch or y have have a hardware problem like bad memory locations that are corrupting the iOS.
    - Restore from backup via iTunes. This will install a fresh copy of the iOS. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.   This will elimate corruptin in the backup causing the problem.          
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar

  • I am using Illustrator CS5. I am using a certain font and when I make a selection to use one of the letter options or a glyph, it does not take my selection; in other words, nothing changes.

    I am using Illustrator CS5. I am using a certain font and when I make a selection to use one of the letter options or a glyph, it does not take my selection; in other words, nothing changes.

    What font? What system? What Glyph? What language settings? Could be anything. Either way, ask in the AI forum. You'll get quicker answers there - if you provide all the required info.
    Mylenium

  • I cannot access the PRIVACY menu from the Tools-Options menu to make changes to cookies and history. I can access every other menu on that page (General, Tabs, Content, Applications, Security, and Advanced. But Not PRIVACY. Please help.

    I need to reset/change/clear my cookies, probably clear my cache, and change my history preferences. When I use the Tools-Options choice to bring up the appropriate menu (General, Tabs, Content, Applications, Privacy, Security,and Advanced) all allow me access to make changes (or not), the PRIVACY tab does not open up. It does no allow access to any info contained there in. It is like it doesn't exist or isn't even there. Also, in the Tools menu on the Firefox toolbar, both "Stop Private Browsing" and "Clear Recent History" are grayed out. What gives? Thank you for your help.

    This can be caused by in incompatible/malfunctioning add-on. To test if this is the case follow the procedure in the [[troubleshooting extensions and themes]] article.

  • IPod updates 2 touch with the new software, and from the update they are not connected with Time phase. They appear calling but never they enter the calls. I make calls with other users and if one connects but in these two not from the update

    iPod updates 2 touch with the new software, and from the update they are not connected with Time phase. They appear calling but never they enter the calls. I make calls with other users and if one connects but in these two not from the update

    I use Firefox 95% of the time, and there's no problem with flash content (and I'm still at .55 - downloaded .64 last week but I haven't got round to making the change yet). At the rate they've been changing it recently it may well be out of date already .
    I've been trying it in Safari, too with no problems apart from You Tube, but that's because I'm blocking Google cookies.
    One thought does occur - if your Flash preferences are set to block all Local Storage, it may be that the problem site is trying to use Flash cookies (LSOs). I had this problem recently with the BBC iPlayer streaming content. Little Snitch notified an attempt to connect to a new URL - emp.bbci.co.uk.
    If I disallowed it, no streaming; when I allowed the connection, it still wouldn't stream, so I did a bit of digging and came to the conclusion that it was trying to set a Flash cookie. When I unblocked, lo and behold - streaming resumed as normal.
    I now have LSOs blocked in a more subtle way that lets the site think it's being set (but it ain't) and the streaming still works.
    As for permissions repair - always repair from local; the permissions on the original disc will have been superceded by updates and new installations of Apple software.
    DU needs to be reading the packages on the HD, not the (now out of date) install disc.
    The recurring repair messages are normal and don't mean anything's wrong. As long as the final message is 'repair complete' there's no need to dwell on it.
    http://support.apple.com/kb/TS1448 (for Leopard and Snow Leopard - Lion no doubt has it's own set).

  • What has caused an app I purchased (Family Tree Maker for Mac) and currently have installed, to disappear from the Mac Store. Does this mean it is no longer sold?  If so, how will I get update notices or re-download if needed?

    I purchased and installed Family Tree Maker for Mac from the App Store about 6 months ago.  I heard that possibly a new version was coming, though I had not received any update notice.  I went to the App Store and it no longer shows the app, either as available for purchase or as an app I have previously purchased.  So I can't get any information on the app, support, etc..  How can an app I have purchased disappear from the purchased list???  How can I get update information or support links? (contacted FTM website and phone support and they said if I bought my program from App store, I have to get update information there).....the Update Info button in my program is actually greyed out!!  So the program I bought doesn't even have the normal update link!!  I thought one of the advantages of App Store purchase was being able to redownload the program in the unlikely event it was lost....ie: no need to worry about having the install CD.  So now I only have my installed, operating copy and no way to reinstall if it crashes due to corrupt data, etc.!!  Not a happy result from an App Store purchase!  And I must say the circular references in the support link are frustarting...apparently there is NO live support for the App Store itself!

    Thanks for THAT tip: iTunes acct. history DOES show my (few) Mac app purchases, buried in with my MANY iPhone and iPad apps!  So I CAN prove I bought it (7 months ago, not 6), but you wouldn't know it from the App Store app on my Mac!  But that does leave a few other ?'s hanging: like how could I download it again, or check for updates (as I said, the version installed has the "update" button greyed out!  Ancestry.com (who sells it online and support it for other buyers said update info for App Store purchasers comes through the App Store. 
    I may just be out of luck with this because after 7 months of ownership, they (Ancestry) just replaced FTM with a new version (Family Tree Maker for Mac2) that is NOT an upgrade (though prior owners get $4.00 off on a $52.00 purchase!!).  I'll probably just plump for that....direct from Ancestry.com...and give up on the Mac App Store, because the new version reportedly has major enhancements in sync-ing your family history record between your computer and the cloud program available online.  Genealogy software, like everything else is migrating to the cloud, but one really does need a resident program on their device because you're often collecting data "in the field" in libraries, historical archives, cemeteries, etc. where you really can't get online in many cases.  Fortunately, more and more of the source data is coming online, so more and more can be done from home!

  • I have two computers one 10.5.8 one 10.6.8.  Updated the 10.6.8 and now my mail has disappeared on one computer - do I sync account to get all my mail content back?

    I have two computers one IMac 10.5.8 one MacBookPro 10.6.8.  Updated the MacBookPro 10.6.8 and now my mail has disappeared on that computer - do I sync account to get all my mail content back onto the MacBookPro?

    You can do it. This article from Macworld will be helpful to you:
    http://www.macworld.com/article/161087/2011/07/install_lion_over_leopard.html
    I recommend the "brute-force" method.
    Just make sure you have your data backed up properly!

  • Dock and Menu disappear only for Safari

    My dock and menu disappear only when I am using Safari. They re-appear when I hover my mouse at the location that they should be at, but for some reason their default positions are to be hidden.
    The dock and menu are present for all other apps and when I'm on the desktop--basically whenever Safari isn't "chosen" as the active window.
    I have checked to make sure that Safari is NOT in Full Screen mode. What could be the problem?

    This has happened to me before and it took me a long time to work it out.
    But all you need to do is froce quit safari or any application that this is happening to and start the application again.
    Hope it works.
    SGosai

  • When I click on firefox, it comes up but dock and menu disappear

    I can lick on Firefox on the dock, but then the dock and menu icons disappear and the screen is blank except for
    Firefox. How do I fix it?

    Hi nortondul,
    Either the window is in full screen mode or the toolbars have been removed and you can customize them to put them back.
    *[[How to make Firefox and websites go full screen]]
    *[[How to Customize Toolbars]]

Maybe you are looking for

  • Adobe pdf signing with Topaz

    Hi All,      we are facing an issue while signing a pdf. i have a pdf attachment in my gmail and when i download it, i'm asked whether to Open/Save it. I choose Open and the pdf opens up. When i try to sign it, i get an error which says: "The Documen

  • Unable to read Class from META-INF/MANIFEST.MF file

    Hi, One of my EJB Bean is referencing a class file "test.class". So, I placed the test.class file under app-servers's "<root-dir>/lib/test.class". And added this in MANIFEST.MF file under "Class-Path" property. But the app servers is not recognising

  • My m ac os x 3 keeps jumping spaces and highlights all by itself?

    my m ac os x 3 keeps jumping spaces and highlights all by itself. sensitive to touch have to keep my hands not resting on computer and then its works?? any feedback appreciated.

  • I have a serial number but I cant find the associated product in the serial number upgrade screen

    I am trying to Install Adobe Acrobats XL standard. Installation goes fine until It brings up a screen titled serial number upgrade. It gives me a drop down list of products to choose from except for the one I have purchased. Can anyone help explain w

  • 5.3 Firefighter Security Table "New" Comments Field

    Since upgrading from 5.2 to 5.3, I noticed that there are new "comments" and sometimes "decription" fields throughout the different FF tables.  I decided to test entering data in these fields.  After doing so in the "comments" area of the "Security"