@Override public void paint(final Graphics g) { final Graphics2D g2d = (Graphics2D) g; scrollingCanvas.paint(g2d); }