// issue 999: don't add the canvas until after the BufferUpdater is
// registered, to make sure we don't miss the initialization call. Also
// force a repaint to be sure the initialization call happens eventually,
// even on headless clients
panel.add(canvas, BorderLayout.CENTER);
canvas.repaint();
try {
waitForReady.acquire();
} catch (InterruptedException ex) {
Logger.getLogger(ViewManager.class.getName()).log(Level.SEVERE, null, ex);