i build an desktop application java using NetBeans IDE 7.4 ,add CSS file from file->new file->other->Cascading Style Sheet . iam write a css :
JPanel{
background: red ;
}
but there is no effect on JPanel background , where is the problem ?
i build an desktop application java using NetBeans IDE 7.4 ,add CSS file from file->new file->other->Cascading Style Sheet . iam write a css :
JPanel{
background: red ;
}
but there is no effect on JPanel background , where is the problem ?
If your panel is 'not opaque' (transparent) you wont see your background color.
however read this