public void paintScreen() {
        try {
            if (!this.isDisplayable()) {
                return;
            }
            paint = this.getGraphics();
            Toolkit.getDefaultToolkit().sync();
            if (VectorWorld.DEBUG_GFX) {
                if (paint == null || oImg == null) {
                    if (paint == null) {
                        System.err.println("No graphics context for panel");
                    }
                    if (oImg == null) {
                        System.err.println("No offscreen image");
                    }
                }
            }
            paint.drawImage(oImg, 0, 0, this);
            paint.dispose();
        } catch (Exception e) {
            System.err.println("In paintScreen:");
            System.err.println(e);
            System.exit(1);
        }
    }