void (Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; int width = getSize().width; int height = getSize().height; Object oldAntialiasing = g2.getRenderingHint(RenderingHints.KEY_ANTIALIASING); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setPaint(new JBColor(Gray._247, UIUtil.getPanelBackground())); RoundRectangle2D rect = new RoundRectangle2D.Double(0, 0, width - 1, height - 1, 0, 0); g2.fill(rect); g2.setPaint(new JBColor(Color.GRAY, Gray._100)); LinePainter2D.paint(g2, 0, height - 1, width - 1, height - 1); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, oldAntialiasing); }