• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to change JTable grid line color?

 
david zhang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I would like to change grid line color of a JTable.
Spent some time and have not figured it out. I hope
to know answers two situations:
1. Use a JScrollPane
2. Not use a JScrollPane
Thanks for your help!
David
 
Terence Doyle
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,
There's a method in JTable
setGridLineColor( Color c )
A short peek at the API doc would have helped you
Bye,

Terry
 
david zhang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Terry,
Thanks for your post. That works. I should have noticed it earlier.
I did check the API and maybe I was tired and did not focus enough.

David
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!