Dear Friends, I have the problem of colors getting mixed up of two different components & results in different color. Here 's the way I do. I have a JPanel & set the background color with rgb value as 250,243,215.Then I place JLabel over the panel for which I set Lineborder with rgb value as 253,253,253.If the panel's background color is white then the JLabel's border color reflects correctly.If the panel's background color is given other than white then the border color specified for JLabel doesn't reflect properly. The label border should be opaque.How could this be done. Expecting u'r replies, Regards, Sonara.