Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to change column heading Font,Background,Foreground.  RSS feed

 
pramod reddy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am creating a screenshot ,in which all the text should display in the same font style,same Background color,same Foreground color.
but my JTable column headings are not changing.
any suggestions are welcome.......
and my code is



and when i run this program
"S.No", "File Name", "File Location".are not changing.
ther are coming in the normal text and my
setBackground(new java.awt.Color(230,243,255));
setFont(new java.awt.Font("Dialog",1,12));
setForeground(new java.awt.Color(33,99,125)); are
not working


 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
pramod reddy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael Dunn,
now it is working fine........


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!