OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 74 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74 Rev 181
Line 23... Line 23...
23
        this.setForeground(Color.BLUE);
23
        this.setForeground(Color.BLUE);
24
    }
24
    }
25
 
25
 
26
    public void paint(Graphics g) {
26
    public void paint(Graphics g) {
27
        super.paint(g);
27
        super.paint(g);
28
        if (mouseOver) {
28
        if (this.mouseOver) {
29
            Rectangle r = g.getClipBounds();
29
            Rectangle r = g.getClipBounds();
30
            final int y1 = r.height - getFontMetrics(getFont()).getDescent() + 1;
30
            final int y1 = r.height - getFontMetrics(getFont()).getDescent() + 1;
31
            g.drawLine(0, y1, getFontMetrics(getFont()).stringWidth(getText()), y1);
31
            g.drawLine(0, y1, getFontMetrics(getFont()).stringWidth(getText()), y1);
32
        }
32
        }
33
    }
33
    }