JFrame background is white on Mac, grey on PC

I have a program which uses a JFrame set to be in full-screen mode, using
DisplayMode oldMode = device.getDisplayMode();
        this.setSize(new Dimension(oldMode.getWidth(), oldMode.getHeight()));
        this.validate();
        this.setUndecorated(true);
        this.setBackground(Color.white);
        this.setForeground(Color.white);  
        device.setFullScreenWindow(this);I set the background to be white here, and in several other places in the code (e.g. just before a repaint() comand). However, while the background is white on the Mac I have been programming this on, it is always an ugly grey on PCs.
The various JPanels in the JFrame, all of which are set to have white backgrounds and be opaque, do indeed have white backgrounds. They just hang there as white rectangles on a grey background.
How can I get my JFrame's background to be white?
Thanks!

Are you setting the background of the content pane?
If not, do that rather than the JFrame itself.Is the content pane the same as the JPanels I have content in? All the JPanels have white backgrounds, but they don't necessarily tessellate together, so you can see the grey JFrame behind them.
I could possibly add a JPanel behind all the other panels, and set its background to be white, but it seems as if there ought to be some way to set the JFrame's background...
If I set the JFrame's background to be black, this shows up on the Mac, but the PC just stays grey.

Similar Messages

  • My Mac mini is stuck in a reboot screen that is all white with a grey folder with a question mark in it

    My Mac mini is stuck in reboot screen that's
    white with a grey folder in the middle that blinks
    and there is a white ? mark on it. What do I do ?

    There are four general causes of this issue:
    1. The computer's PRAM no longer contains a valid startup disk setting when there aren't any problems with the disk itself. This can be checked for by pressing the Option key and seeing if the drive appears.
    2. The internal drive's directory structure has become damaged. This requires usage of an alternate bootable system to perform the repair.
    3. Critical system files have been deleted. This requires usage of an alternate bootable system to reinstall them.
    4. The internal drive has died or become unplugged. This is the most likely case if the computer took a sharp impact or there are unusual sounds coming from the hard drive's location.
    (70837)

  • After sleeping my macbook pro 15.4" mid 2012 model for overnight and pass 24 hours time, on wake -- the dock background is white for a few seconds and then it turns back to normal color. . .

    After sleeping MacBook Pro 15.4" mid 2012 model (running Mac OS X 10.10.2 Yosemite) for overnight and pass 24 hours time, upon wake from sleep-- the dock background is white for a few seconds and then it turns back to the normal color.
    Is this normal? Should I be worried? Is my GPU defective?
    My specs:
    MacBook Pro 15.4" Mid 2012 model, Ivy Bridge Quad core i7 2.3Ghz CPU w/ hyperthreading,
    16GB RAM, Nvidia 650M 512MB VRAM/Intel 4000 HD 1GB VRAM, 500GB HD
    Running Mac OSX 10.10.2 Yosemite.
    Thanks to all in advanced.

    It doesn't happen all the time but sometimes and i tried zapping the PRAM and it still happens!

  • Spry Menu background is white in IE

    I've created a vertical Spry menu with submenus. The menu should not have a background color, so it should take the color of the image it's on top of. This looks fine on Safari (Mac) and Firefox (Mac/Windows), but on IE 8 (Windows), the menu background is WHITE. This makes it difficult to see the menu items. What can I do so that the menu background is transparent and does not show up white in IE?
    The site: http://chrysacupuncture.com
    I'm attaching index.html, my own css file, and the Spry css file.
    Thanks for your help.

    Actually, now that I look at it, I think one of your IE hacks might be malfunctioning:
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
         ul.MenuBarVertical li.MenuBarItemIE
              display: inline;
              f\loat: left;
              background: #FFF;
    This is the bottom-most item in your CSS file.  Notice the typo in the float:left and that it does indeed state a white background background:#FFF.  I don't usually put IE hacks external CSS, you might try moving it to the main HTML file and using IECC.  Place it in the header as you would if you had internal CSS:
    <!--[if IE 5]>
    <style type="text/css">
    ul.MenuBarVertical li.MenuBarItemIE
              display: inline;
              float: left;
    </style>
    <![endIf]-->
    I removed the background color altogether, but you may have to define one (I don't usually support IE5 so I'm not sure).
    If you insist on having this hack externally, you can try placing the background: transparent in the first item of your CSS:
    ul.MenuBarVertical
         margin: 0;
         padding: 0;
         list-style-type: none;
         font-size: 100%;
         cursor: default;
         width: 9em;
         padding-top: 80px;
         background: transparent;

  • MacBook Display flashes white, red, blue, grey when starting up.

    This problem just started yesterday when I turned on my Mac. It made the apple sound and then it went to a blue screen then started flashing white, red, blue, grey and then a few grey patterns. It went away last night when I left it on for about 5 minutes and when I restarted it there was no problem. However when I turned it on this morning it had happened again. I have no idea what the problem could be. Anyone had this problem before or have any advice? The Mac is 1.5 years old.

    Try resetting the SMC - might help, cannot hurt.
    Barry

  • Black background and white letters?

    Lion 10.7.2 and iTunes 10.5 on a Mac Pro.
    Everything has been fine until this morning when all of a sudden my background has changed color to black and the characters are white. I don't know what I did to cause this. More importantly, I don't have a clue on how to go back to a white background and black characters.
    Thanks for any help.

    Tom,
    Thanks for the suggestion. However, while doing this does change the background on iTunes, it also flips the all the other windows to a black background and white characters. The only app that has the black background is iTunes, everything else is fine.

  • PDFs printing with black background and white text.

    For some reason some of our PDF's have been printing with black backgrounds and white text, even though they appear to be normal on the screen before they are printed. I haven't been able to confirm 100% yet but it appears to only be happening with pdfs that were created from scanned documents.
    Can somebody please offer me some suggestions.

    Absolutely agree with the original poster.  I find white text on black background so very very difficult (I changed from using Tweetbot on iOS to Tweetlogix for this very reason) and it physically hurts my eyes to try to read it.  I can just about manage with Spotify using white text on a black background on the large screen of my MacBook Pro - and I do mean "just" - but for the smaller screen of my iPhone 5 it is just impossible.  Even with a retina screen such as that on the iPhone 5S there is a strange ghosting effect and it gives me a headache to look at it for too long. 
    This may be something to do with age!  I suspect most app developers are youngsters with almost perfect eyesight, but for those of us whose eyesight is less than perfect, this white text on black background really is so very difficult.
    I know there is a workaround in setting the iPhone to invert ALL colours (under Accessibility in Settings) but it's a real pain to have to keep altering this setting every time I want to open or close Spotify, and it doesn't look right anyway.  iOS7 is supposed to be a light, bright, easy to read OS - sadly this new Spotify app is the opposite of that.
    Please would Spotify consider adding a simple light or dark theme option, so that those of us who want it can have our much easier to read light background back again, with grey or black text?  It would be a great help to those of us who have eyesight problems.
    If not, I may have to cancel my Spotify Premium account and move to Deezer instead, as I mainly use Spotify when out and about in the car, so am using the iOS app a lot.
    Thank you for considering this plea!
     

  • How to set background as white colour for Bitmap images in sapscripts?

    Hi,
    Can anyone let me know that How to set background as white colour for Bitmap images in sapscripts?Actually,I am getting grey as background as defualt for my Bitmap images.
    Sorry,in my previous question,I posted viceversa.I am mistaken.
    Thanks,
    Balaji

    Hi,
    The problem can be solved by changing the way you save the original image.
    Take a look at this thread which explains;
    Problem with logo
    Regards,
    Nick

  • Why are my PDFs black background with white lettering?

    I cannot remember how to undo something. My pdfs are black background with white lettering. I just want it back to normal

    Hi pistoley,
    Are you viewing your PDFs in Reader or Acrobat, and what version? It sounds like there may have been a change made to the Accessibility preferences. In Reader/Acrobat XI, choose Edit > Preferences (Windows) or Reader/Acrobat preferences (Mac OS), and click the Accessibility category. Is Replace Document Colors selected? If so, try deselecting that.
    Please let us know how it goes.
    Best,
    Sara

  • How to change transparent PDF background into white background?

    Hi all, I have some text documents in PDF format and would like to edit it in photoshop CS5, but each time I open them up in photoshop, the background seems to be transparent (tiny grey and white tiles), which is very eye tiring when editing/annotating with a wacom pen, how to fill the background total white? Thanks.

    Ah, easy one. Create a new layer{Layer>New Layer}, then fill it with a color{Edit>Fill}Change content of the fill box to a color of your choosing.
    If you have windows the short cut for filling with foreground is alt-backspace and filling with background is ctrl-backspace. Short cut for fill dialog box is shift-backspace or shift-F5.
    A faster way to create a new layer is to use the icon just to the right of the trashcan at the bottom of the layers panel.
    A bit over winded in directions, but once you learn the shortcuts, it will be a snap to do.

  • What is the best way to drop out a background to white?

    I have several quite old architects drawings to reproduce. The problem is that with age, the original paper has yellowed and foxed. Can anyone suggest a good way of dropping out the background to white so that the image will look nice and clean when I print it, please? Normally I would bring the white point slider up in Levels and sort of burn it out, but I was wondering if there is a more subtle method of doing this. The trouble is I don't want to loose detail in the fine pencil lines at the same time.
    Thanks everyone - Brian.

    Thanks for that, I'll give your method a try.
    No no, I don't mean an insult - you read it wrong! Last thing I would do when asking for help... No, I mean that just 'turning up the white level' is crude, in that it looks like its been blasted by an atom bomb and looks awful, and I was wondering if a more scientific approach might not be applicable. For example, I've tried putting colour sampler points in the image and then independantly adjusting the R, G, and B levels etc until they match at 255 each, but it still looks blown out, but that's what I meant by being more 'scientific', ie perhaps using some of Photoshop's ability to measure colours to enable me to drop them out, for example.
    I found a previous thread along the same lines as this and one suggestion was to use some special filters, but they turned out to be mac only.
    The 'forensic' reference was to the Color Deconvolution filter, it was designed for police forensic departments as an aid to help spot where two different colours of ink have been used on a document, for example.
    By the way, the drawings I'm working on are not all B/W only, some have colour washes on them too...
    Perhaps the only way is to try and select the background areas first and then to drop them out.

  • White screen with grey folder question mark

    hi,
    i was trying to restore my mac pro 10.7 to factory setting. so i restarted my mac and pressed command+R erased my HD but while installing it back my mac turned off becuse it was not charged know when i am starting my mac its showing me white screen with grey folder with question mark. please tell me what to do

    It's showing that screen becuase the OS didn't finish installing and the computer can't find the files that it needs to boot the OS.  Have you tried going into the setup again by pressing the "Command+R" buttons again?  If you can get back in there, try setting the OS up again and that should help.

  • IPad video poster frames white box with grey tv, looking for fix

    I have searched the forums and can not find a working solution.
    I have mpeg4 Apple TV/ iPad videos that I have added to my iPad through iTunes. 
    When they came in, all the poster frames were black, as that's the first frame of video.  I manually went though iTunes and set each poster frame. 
    I then sync and reboot on the iPad.  Poster frames are now white squares with grey tv.
    Repeated the above twice.
    Signed in and out of home share (as suggested by one forum) and reboots iPad.
    Have removed all files from iPad and then added back.  Back to black poster frames.
    I have no way to check if the poster frame are correct as in iTunes, I can only see files on the iPad in list view.  When I do get info, there is nothing about the poster frame.
    Any help or ideas would be appreciated. 
    Ipad2
    iOS 6.1.2
    iTunes 11.0.1
    MacPro OSX 10.7.5
    Thanks!

    BUMP.
    Still looking for an answer on this.  In addition to the above:
    I have tried setting the poster frames inside of iTunes
    I have tried setting the poster frames outside of iTunes and then importing onto the iPad though iTunes.
    Setting ratings made no difference.
    I can not add artwork manually, it is greyed out in the info pain and not accessible.
    Still same results.  Now all video files are a Grey Square with a different symbol depending on what "Media Kind" the file is set to.  And in fact, when I do this, the files disappear from iTunes and I can no longer find them.
    Apple, Please help!!
    Reading the Forums, this is a problem that has yet to be answered.
    Ipad2
    MC770LL/A
    ios 7.1.1

  • Why does my older PDF files print an all black background and white letter/numbers?

    I have a laserjet 1536dnf MFP.  Printing older adobe pdf's results in an all black background with white letters / numbers.  How can i correct this.  It doesn't happen with newly created PDF's from the 1536dnf scanner.

    Hello imcpa2!
    Try taking a look at this thread for possible solutions:
    http://h30434.www3.hp.com/t5/Printer-All-in-One-Install-Setup/laserjet-1536-dnf-fax-pdf-printing-pro...
    Hope this helps!
    Help the community by marking this post as a solution if it solved your issue!.
    If my post helped you in any way, please click the blue KUDOS star under my name! It would mean a great deal.

  • Why is the Artboard background color white in June 2014 release?

    After opening Illustrator after the upgrade of the CC suite, the Artboard background is white like the artboard itself. So I can only see the borders of the Artboard when I am in Artboard edit mode. Is this a new feature? How can I reset the Artboard background to gray or black?

    It's funny because when I went back into Illustrator to make that change, it was back to a dark background. Thanks for the reply, though.

Maybe you are looking for

  • My payment has been declined.

    Hi, I made a purchse for an iPad Mini on November 3rd, 2012 and everything was great, I had no issues with my Debit/Visa Card at the time of purchase. But then a week or so after I went to check my status of my order and it said this: "Payment action

  • Currency Translation based on Last Day of the Acquistion month

    Dear all,             Request to help me in understanding how we can calculate the currency translation rate as per the last day if the acquistion month.. For Example if the  Acquistion date : 01/01/2008 (mm/dd/yyyy) the currency translation should h

  • Horizontal menu bar shows serif type font in Live View and Preview but sans serif is in css file

    Help I am using the Spry horizontal menu bar and while it is working fine, it is showing a serif font in Live View and in all Browsers even though I have selected a sans serif font. What gives? I have attached the SpryMenuBarHorizontal.css

  • File Info (Exif) window empty and locks CS4

    Greetings. In Photoshop CS4, my File>Info window is now blank (empty) and modal, i.e., I must close Photoshop via Task Manager (Windows 7).

  • Problem When deleting record from database

    Hi , I have a question. Firstly I'm using VB I have a problem about deleting any record from access database , That's the code I'm use it for add new item and it's work but it's not work when I tried to edit any rows " it's not want to Save" but work