I created an item renderer for a advanced datagrid and decided to put color on some of the cells. However the result comes with a vertical gap between the colored cell ( you can notice a big gap of white lines between the red cells on the screenshot)
Any idea how to remove this?
For the coloring of cell, I follow this tut开发者_如何学JAVAorial link.
Can you set paddingBottom and paddingTop to 0? Docs make me think that these two properties control the gap.
What happens if you try replacing g.drawRect(0, 0, unscaledWidth, unscaledHeight) with g.drawRect(0, -2, unscaledWidth, unscaledHeight+3)?
精彩评论