PDA

View Full Version : Display of colors in Java




bluegoo26
Feb 27, 2008, 02:54 PM
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.



toddburch
Feb 27, 2008, 03:33 PM
Let's see a small code example that does not work.

jeremy.king
Feb 27, 2008, 03:35 PM
What look and feel are you using? Is the component opaque?

Post code.