SimpleCanvasImpl doesn't start

Hi all, it's me again.



I've trouble with a SimpleCanvasImpl and going crazy with it.



I've a Main Class which extends a JFrame:



public class Main extends JFrame{

    Canvas glCanvas;
    sumatraShow show;

    public static void main(String[] args) {
        new Main();
    }

    public Main()
    {
        init();

        try
        {
        new Thread() {
                {
                    setDaemon(true);
                }

                public void run() {
                    try {
                        while (true) {
                            if (isVisible())
                            {
                                glCanvas.repaint();
                            }

                            Thread.sleep(2);
                        }
                    } catch (InterruptedException e) {

                    }
                }
            }.start();
        }
        catch(Exception err){}

    }

    public void init()
    {
        setVisible(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setFont(new Font("Arial", 0, 12));
        setTitle("jME Programm");
        setIconImage(new ImageIcon(Main.class.getClassLoader().getResource("endeprog/data/images/MAT.jpg")).getImage());
        setSize(new Dimension(1024,650));
        DisplaySystem.getDisplaySystem().setMinStencilBits(4);

        DisplaySystem.getDisplaySystem().registerCanvasConstructor("AWT", LWJGLAWTCanvasConstructor.class);
        glCanvas = new Canvas();
        glCanvas = (Canvas) DisplaySystem.getDisplaySystem().createCanvas(1024, 650);

        show = new sumatraShow(1024,650);
        ((JMECanvas) glCanvas).setImplementor(show);

        JPanel panelMitte = new JPanel();
        panelMitte.setLayout(new GridLayout(1,1));
        panelMitte.setMinimumSize(new Dimension(600,650));
        panelMitte.setBackground(Color.BLACK);

        panelMitte.add(glCanvas);

        getContentPane().add(panelMitte, BorderLayout.CENTER);
    }

}



and a Class which extends SimpleCanvasImpl:


public class sumatraShow extends SimpleCanvasImpl{

    Canvas canvas;
    BasicPassManager pManager;
    InputHandler input;
    jmeClass jme = new jmeClass();

public sumatraShow(int width, int height)
{
    super(width, height);
}

public void simpleSetup()
{
    System.out.println("aslkfdh");
}
}



The problem now is that my SimplCanvasImpl Class doesn't execute the code in the simpleSetup() function and I don't understand why. I've same code in many other programms and there it still works. Maybe I overlook something and I hope anybody can show me my mistake.

greetz