@Override public void paintComponent(final Graphics graphics) { final Graphics2D g = (Graphics2D) graphics; final NodeView nodeView = getNodeView(); if (nodeView.getModel() == null) { return; } paintBackgound(g); paintDragOver(g); super.paintComponent(g); }