FlatLaf icon indicating copy to clipboard operation
FlatLaf copied to clipboard

Unable to get table header seperator line.

Open VKaddala opened this issue 1 year ago • 1 comments

image

After the table is displayed, I can't able to see the border/bottom header table separation line. I mentioned the properties TableHeader.separatorColor=#B4B4B4 TableHeader.bottomSeparatorColor=#000000 but of no use. I tried to debug and when the table is rendered,

protected void paintBottomSeparator(Graphics g, JComponent c, int x, int w) {
        float lineWidth = UIScale.scale(1.0F);
        Graphics2D g2 = (Graphics2D)g.create();

        try {
            FlatUIUtils.setRenderingHints(g2);
            g2.setColor(this.bottomSeparatorColor);
            g2.fill(new Rectangle2D.Float((float)x, (float)c.getHeight() - lineWidth, (float)w, lineWidth));
        } finally {
            g2.dispose();
        }

    }

this method is called. Am I missing something here? Please help @DevCharly

VKaddala avatar Apr 29 '24 17:04 VKaddala

Does the screenshot really show a table header? Looks strange. What are you doing?

DevCharly avatar May 04 '24 12:05 DevCharly

No answer since 3 weeks. Assume that issue is solved...

DevCharly avatar May 22 '24 12:05 DevCharly