Notice that using a GridLayout makes the label as big as the whole room panel p1 is given. If you placed a button instead of a label, or the label were not responsible for painting its background (label.setOpaque(true) the colors would not be visible!

SCJP2. Please Indent your code using UBB Code

Marie Jeanne Thibault
Greenhorn

Joined: Nov 15, 2003
Posts: 15

posted Nov 16, 2003 14:45:00

0

Hi Jose, Wow, looks like I was making it a lot more complicated than it should've been. By the way, I got it (nudge, nudge, wink, wink)... Thanks again!