JTable cell - border color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thesti
    New Member
    • Nov 2007
    • 144

    JTable cell - border color

    hi,

    can we change the color of the border of a cell / every cell in JTable?

    thx
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by thesti
    hi,

    can we change the color of the border of a cell / every cell in JTable?

    thx
    Have you read the API documentation for the JTable class? It has a
    setGridColor() method. If you want to change the border color for a
    single cell have a look at the TableCellRender er.

    kind regards,

    Jos

    Comment

    Working...