Display of colors in Java

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

  1. macrumors newbie

    Joined:
    Dec 22, 2004
    #1
    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

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

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #3
    What look and feel are you using? Is the component opaque?

    Post code.
     

Share This Page