void (Graphics g) { JTextComponent component = getComponent(); if (component != null) { Container parent = component.getParent(); if (parent != null && component.isOpaque()) { g.setColor(parent.getBackground()); g.fillRect(0, 0, component.getWidth(), component.getHeight()); } if (component.getBorder() instanceof DarculaTextBorder && !isTableCellEditor(component)) { paintDarculaBackground(g, component); } else if (component.isOpaque()) { super.paintBackground(g); } } }