public void paint(Graphics g) { if (sorter == null) return; Graphics2D g2 = (Graphics2D)g; sorter.draw(g2); }