@Override
    public void paintBorder(Component c, Graphics g,
            int x, int y, int width, int height) {
        if (shouldPaintAeroEditorBorder(c)) {
            super.paintBorder(c, g, x, y, width, height);
        } else {
            defaultBorder.paintBorder(c, g, x, y, width, height);
        }
    }