void (Graphics2D g, int x, int width, int height) { super.paintBackground(g, x, width, height); int y = 0; int baseline = getBaseline(width, height); if (baseline >= 0) { JBInsets insets = rectInsets(); FontMetrics metrics = g.getFontMetrics(getBaseFont()); y = baseline - metrics.getAscent() - insets.top; height = metrics.getHeight() + insets.height(); } Graphics2D g2 = (Graphics2D)g.create(); try { GraphicsUtil.setupAAPainting(g2); g2.setColor(JBUI.CurrentTheme.List.Tag.BACKGROUND); int arc = JBUIScale.scale(ARC); int offset = JBUIScale.scale(LEFT_OFFSET); g2.fillRoundRect(x + offset, y, width - offset, height, arc, arc); } finally { g2.dispose(); } }