JMenu to the top of the screen

I'm currently making an application that can function on both a windows and make platform, and I was wondering does anyone know where they explain how to add the Menu Bar to the top of the screen on a mac?

My code looks like this, as it says in every example I've read but it doesn't work to no avail. Any suggestions?
MenuBar(){
          vers = System.getProperty("os.name").toLowerCase();
         if (vers.indexOf("mac") != -1)
            //System.setProperty("apple.laf.useScreenMenuBar", "true");
              System.setProperty ("com.apple.macos.useScreenMenuBar","true");
              macFrame=new JFrame();
               menu=new JMenuBar();
              makeFileMenu();
               makeEditMenu();
               makeRecentMenu();
               menu.add(fileMenu);
               menu.add(editMenu);
               menu.add(recentMenu);
               macFrame.setJMenuBar(menu);
               macFrame.setVisible(true);
        }

Similar Messages

  • How do I remove side bar and go back to tabbed browsing across the top of the screen?

    I update firefox and was asked how I wanted tabs displayed. I orignally had new tabs opening across the top of the screen but changed a setting so they came up on the sidebar. I want to go back to tabs across the top of the screen but can't find how to do this.

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    # Shockwave Flash 10.1 r82
    # Next Generation Java Plug-in 1.6.0_14 for Mozilla browsers
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?

    I tried using the Voice Memos iPhone app and ended up with a red banner on top of the screen that flashes "recording 00.00" but I can't locate what I thought I was recording.  can you help me?
    jacknil

    I found an answer to this on another page (I was having the same problem) This worked for me:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    more here: https://discussions.apple.com/thread/5596831

  • HT201335 I am only getting the AirPlay icon when I am in ITunes.  It does not show up when on my Mac when ITunes in not on the screen.  There is no Icon at the top of my computer. How do I fix it?

    Can someone tell me how to get the AirPlay Icon on the toolbar at the top of my screen?  It only shows up when I am in Itunes.

    The airplay icon you are reffering to is for mirrorring your desktop.  It is a functionality of Mountain Lion and it seems, based your profile, that you are still using Lion.  Therefore, you will need to purchase and upgrade to 10.8 in order to get this function.
    Be sure your iMac is really mid 2011 as it will be the oldest to support the mirrorring function.  Apple TV 2 or later is also required.

  • I am using Mail for emails and I seem to have two different windows that switch between the two.  The emails are the same but the second window opens when I click on any details and I cannot see the top of my screen with control icons for internet, file

    I am not very tech savy and apologize in advance if my question is not clear.  I use the Mail application on my mac and I have two users on my computer, one for gmail and another for my work email.  All email addresses appear in the mail application on one page.  When I open my email and click on a message it often goes to the other user screen and cuts off the top of my screen which shows the bar for Chrome, file, edit, view, history etc....Still functional but very annoying.  How do I choose a user screen and stop having it switch back and forth. 
    Thank you.

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • The glass on my new ipad air was broken one day. I have had it for about a month. 1 day I took it out of its case as usual and the screen was splintered at the top and cracked downwards.  It had not received any bangs, or been dropped or anything.  Help!

    Hi, I have had my ipad air for about a month.  The other day I took it out of its cover and it was splintered from the top with downward cracks.  It is new and under warranty so I rang the support team.  They told me that it would cost about €120 but could be repaired on the spot and they made me an appointment at the local genius bar.  I got there and they told me that I had dropped it or banged it or something.  I said I had not, they insisted that I must have done.  I repeated several times that I had not - it was obvious they did not believe me, they said I must have done.  They then told me they never repaired or replaced broken glass in any ipads, that the man on the 'Support' had been wrong.  They always replaced the whole ipad at a cost of €300.  I was devastated at not being believed and at the amount of money they were asking for.  I left and rang the support again.  I was told their system was down but to call on monday to get a quote for the reparation, I could send it to my home insurance company and they would undoubtedly cover the repair.  I asked how long this was all going to take because, I was in the middle of a big project and this was taking up my time, and also I needed the ipad for my work.  They told me it would be done in a minute.  I rang on the Monday and I was told it would take up to 5 days to send but probably it would arrive sooner (it is now thursday, I have received nothing).  I then rang my household insurance, a big company - and they told me they had never heard of such a cover.  I asked if this was because I had a very basic policy, they said, no it wasn't that - I didn't have a basic policy I had quite thorough policy, but they didn't know of a policy in any comany that would cover this sort of damage.  I was stunned - yet again I had been given false information and false hope by apple.  Yet again I was let down.  I then decided to do a further investigation on the internet and discovered a long trail of comments on Apple Forum of people who have also had splintering and cracking of the ipad air glass for no reason whatsoever.  Some have commented that the glass could be thinner in order to reduce the weight, some have said that the splintering could be caused by a weakness in the casing at the top where it is plastic (the ones that take sims) that might make it more flexible and therefore liable to crack.
    All of the posts and complaints on the apple forum and elsewhere seem to point to a design fault.  However throughout all this I have been mislead by apple support staff constantly who all say different things, I have virtually been accused of lying by denying that my ipad received any kind of impact by apple staff and I have been left feeling incredibly frustrated and upset by the total lack of any kind of real help by Apple.  All this despite being acomplet apple user in my business for the last 25 years, where I have never come across this attitude towards me as a customer before.
    When the screen on my iphone broke, it was because I fell in the street while I was talking on the telephone, it flew out of my hand and smashed on the pavement.  I was rolling around in agony, while my son was holding up the smashed telephone wailing 'Mama, you've smashed your iphone!!!'  This of course, I blamed on noone but myself - it broke because it fell, I paid an arm and a leg without protest to get it repaired.
    This is not the case with my new ipad air.  It has splintered for no good reason at all - and noone at Apple seems to want to help me or to care!
    I would really appreciate it if someone could tell me if there is anything else I can do to ge this matter resolved?

    If it was a refurb replacing one that was under warranty, the warrany is good until the original warranty expires or 90 days from replacement, whichever is longer. In either event, it should still be covered if you've only had it for a month. (assuming you're in the US here). You can try to restore it as a NEW device rather than restoring from your backup, but this sounds like a hardware failure... I think. I'm not sure what you mean by "the top half of the screen slides". If you mean only the top half is touch sensitive, how can you determine that? You wouldn't be able to slide to unlock if that were the case...
    Sorry, I'm a little confused by that description.

  • I am having a recurring problem with my screen suddenly enlarging to the point where I cannot use it!  The power button is also unresponsive.  When it does work and the screen is large, I cannot access the slide at the top.....

    I am having a recurring proble with my screen suddenly enalrging to the point where it is unusable. The power button is also not working.  When I try to shut off the phone to restart it, I cannot swipe across the top to power off vbecause the screen is so big and unresponsive.  Can someone help me with this problem?

    Double tap the screen with three fingers to switch off zoom, then go to setting and disable it to make sure you don't switch it on again by accident.
    http://support.apple.com/manuals/

  • New to Macs just purchased a 27-inch: 2.7GHz mac when I open e.g my company website or facebook it only displays centre of the screen How do I set it up show full screeen also the bar at the top is hard to read as so small can this be increased, ??

    Hi I need some help please as above I have just purchased my first mac 27" and as much I love it as a newbie im having some teething troubles, when say Facebook or my company website is displayed it is only displayed in the centre of the screen I know I can zoom in and out but that doesnt look great and dont want to have to that on each page display, how do i fix this please.
    Also the toolbar at the top of the page is so small and hard to read is there a way to increase and fix the size
    Thanks for your help

    For the browser window, just drag it to the top left of the screen (click and hold on the top bar with the traffic lights to drag), then in the bottom right of the window you'll see a rectangle with diagonal hatching. Click and hold on that and drag the window to the size you want.
    Clicking on the green dot at top left will expand the window to fit the screen, clicking it again will shrink it back to where it was (this doesn't work in Finder windows quite the same).
    The menu bar size is set in the bowels of the OS, though there may be third-party applications which can alter it.
    As it's size is relative to the screen resolution, you could try reducing the resolution in System Preferences > Displays to see if that would suit you better.

  • I Just updated my iPhone 4 tp 7.1 oS. I am unable to connet to any network. I keep getting the "searching" Np Service" messages on the top let corner of the screen. I also get a notice that say " "unable to load network list. I need help...

    I Just updated my iPhone 4 to 7.1 oS. I am unable to connet to any network. I keep getting the "searching" No Service" messages on the top let corner of the screen. I also get a notice that says " "Unable to load network list. I need help... How can one resolve this issue?

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • When I Copy Data and paste to Word Pad it posts the Data in a Top to Bottom format. When I copy the same from IE it post the data as you see it on the Screen - in a Left to Right Top to bottom format. Why does FoxFire reformat the date.

    You can go to site http://birminghamapa.com/about_us/division_info.asp?DivNO=671 and Copy any Section and Paste to Word and it post a top to bottom Out Put. You go to IE and Copy info it Paste in format that looks just like the page.

    Becaise the digitizer is broken in that area
    Apple will exchange your iPod for a refurbished one for $199 for 64 GB 4G and $99 for the other 4Gs. They do not fix yours.
    Apple - iPod Repair price                       
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens         
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit                  

  • When i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    when i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    Have you upgraded to iPhoto 9.6 for compatibility with Yosemite? If not, try that first.
    It looks like iPhoto has lost the connection between the thumbnails and the original image files.
    This can be caused by a corrupted iPhoto library, or the originals have been deleted or moved.
    Try first to rebuild your iPhoto Library:
    If you do not have a current backup of the iPhoto library, make a copy of the library, but do not overwrite any previous backup.
    Launch iPhoto with the ⌥⌘-key combination (option-command) held down.
    Select "rebuild" from the first aid panel.  This may take a while for a large library.
    Can you now see your photos again?
    If not, rebuild the library with iPhoto Library manager as described by Old Toad:            Re: iphoto crashed

  • I cannot get the info bar (not the dock) on the top of my screen to permanently appear without my having to put the cursor on top of screen. Then it appears. Don't even know what that is called...above the open window.

    How do I get the area above the open window to display information (as in closing that specific window, "Safari  File Edit View History, etc.) without having to attempt to put the cursor on it to give me that info? I am not referring to the dock which is at the bottom of my screen. Although,It too, is not  visible.
    They were both visible before today.
    Sorry, but I have no clue as to what this topic should be.

    When you do Safari to it's maximum size on the screen (with the two little arrows in the Safari top menu bar on the right), Safari will take the whole screen including the top Apple menubar. In that menubar is the same set of little arrows to bring Safari back to it's previous size (which you can set by moving it's borders), you bring the Apple menubar in sight by moving the mousepointer to the top of the screen, when you do not want to loose that apple menubar, you can set Safari as bog as you can by moving its borders but just until below the apple menubar. Don't touch the little arrows in Safari menubar.

  • HT4199 In the middle of using wi-fi on my Mac Book Pro, I lost contact. When I click onto the empty wi-fi icon, top right of screen I get the message Wi-Fi: No hardware installed. Any clues anyone?

    In the middle of using wi-fi on my MacBook Pro, I lost contact. No other apple devices (iMac, iPhone or iPad) are affected. When I click on the empty wi-fi icon (top right of the screen) it gives the message: Wi-Fi: No hardware installed. has anyone any clues?

    Wi-Fi: No hardware installed. has anyone any clues?
    Unfortunately, this message is almost always an indication that the internal AirPort card on the Mac has failed and will need to be replaced. This is a job for repair shop.
    If you have a recent Mac, a Hardware Test may reveal this as well:
    http://support.apple.com/kb/HT1509

  • After downloading the latest version of Firefox I am unable to display more than one website at a time in the tool bar at the top of my screen.

    Before I upgrades to your latest version I was able to display many websites at the same time in the tool bar at the top of my screen. Now I can only display one at a time and it is extremely annoying.

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    More information about reinstalling Firefox can be found [https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems?esab=a&s=troubleshooting&r=3&as=s#w_5-reinstall-firefox here].
    <b>WARNING:</b> Do not run Firefox's uninstaller or use a third party remover as part of this process, because that could permanently delete your Firefox data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. <u>These cannot be recovered unless they have been backed up to an external device!</u>
    Please report back to see if this helped you!
    Thank you.

  • Why is there a grey block on the bottom of my screen in safari and i cant see the top of my screen in full screen mode?

    When I put the window into full screen mode a gray block appears across the bottom of the screen. Thus the top of any given web page is truncated upward and I cannot access anything...But if I minimize the view what was once unavailable reappears.
    Is there a way to get rid of this gray block?

    Provide computer and OS version info and maybe we can help. Phone and iOS stuff tells us nothing useful.

Maybe you are looking for

  • Write to file in ansi

    I want to write an arraylist to a text file and have the file encoded in ansi. I have found the only way to have the file encoded in ansi is to write strings to the file. I can't figure out how to cast my arraylist to strings, (which is what i think

  • Deployment error in adapter module

    HI , The deployment of the adapter module was successful but with exception.below is the log. Any help with this is appreciated --- Deploying file(s): C:\Users\am90001042\workspace\File_EAR\File_EAR.ear --- Status: Deploy finished with warnings. ---

  • MacBook Pro disconnets from Internet and with Daignostics Connects

    I have a Macbook Pro with a Verizon wireless moden. The computer takes a long time to connect to the web and then cuts off when I got to different sites. The moden shows 5 bars and is flashing green. I go to diagnostics and the moden is not connected

  • Connection to a new PC

    I updated my ipod using my old PC and I don't know how to transfer all my itunes from my ipod to the new library on my new pc. can anybody help?

  • Custom infotype with table

    Hi Guyz, i have to create a custom infotype with a table in it.i have created the PS structure (PM01)with fields a,b,c,d,e. i gave the infotype charac, techn attr, activated the PA table and P structure . In the lay out editor i created a table and p