@Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Color c = g.getColor();
//        g.setColor(isEnabled() ? Color.GRAY : Color.LIGHT_GRAY);
        g.setColor(isEnabled() ? Color.BLACK : Color.GRAY);
        Insets i = getInsets();
//        int opSize = getFontMetrics(getFont()).stringWidth("M") / 2;
        int opSize = 2;
        int newx = getWidth() - i.right - 2 * opSize;
        int newy = (int) (getHeight() * 0.75);
        g.translate(newx, newy);
        g.drawLine(-opSize, 0, opSize, 0);
        if (!isSelected()) {
            g.drawLine(0, -opSize, 0, opSize);
        }
        g.translate(-newx, -newy);
        g.setColor(c);
    }