Display of colors in Java

Discussion in 'Mac Programming' started by bluegoo26, Feb 27, 2008.

  1. macrumors newbie

    Dec 22, 2004
    I'm making a GUI using JPanel. When I use .setBackground, however, no colors show up. My program compiles, and colors do show up on other machines. I have a brand new MacBook Pro. Any ideas? Also, any ideas on solving this problem on other computers with the same issue, were I to make an applet.
  2. macrumors 6502a

    Dec 4, 2006
    Katy, Texas
    Let's see a small code example that does not work.
  3. macrumors 603


    Jul 23, 2002
    Fuquay Varina, NC
    What look and feel are you using? Is the component opaque?

    Post code.

Share This Page